chore(gengetsu): common nixos.hw.c4130

This commit is contained in:
arcnmx 2024-11-24 13:51:35 -08:00
parent 64efbaf503
commit 3c5e7179bb
18 changed files with 217 additions and 132 deletions

View file

@ -6,12 +6,10 @@ _: {
modules = [
./nixos.nix
];
deploy.hostname = "10.1.1.204";
deploy.sshOpts = [];
#exports = {
#services = {
#};
#};
exports = {
services = {
};
};
network.networks = {
local = {
macAddress = "54:48:10:f3:fe:aa";

View file

@ -0,0 +1,47 @@
{
meta,
config,
...
}: {
imports = let
inherit (meta) nixos;
in [
nixos.hw.c4130
#nixos.netboot.kyuuto
];
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/bf317f5d-ffc2-45fd-9621-b645ff7223fc";
fsType = "xfs";
options = ["lazytime" "noatime"];
};
"/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
options = ["fmask=0077" "dmask=0077"];
};
};
networking.useNetworkd = true;
systemd.network = {
networks."40-eno1" = {
inherit (config.systemd.network.links.eno1) matchConfig;
address = ["10.1.1.61/24"];
gateway = ["10.1.1.1"];
DHCP = "no";
networkConfig = {
IPv6AcceptRA = true;
};
linkConfig = {
Multicast = true;
};
};
links.eno1 = {
matchConfig = {
Type = "ether";
MACAddress = "54:48:10:f3:fe:aa";
};
};
};
}

View file

@ -1,47 +1,11 @@
{
meta,
config,
lib,
modulesPath,
pkgs,
...
}: {
{meta, ...}: {
imports = let
inherit (meta) nixos;
in [
./hardware-configuration.nix
#nixos.sops
nixos.base
];
boot = {
initrd = {
availableKernelModules = ["ahci" "xhci_pci" "ehci_pci" "usbhid" "usb_storage" "sd_mod" "sr_mod"];
kernelModules = [];
systemd.emergencyAccess = true;
};
kernelModules = [];
extraModulePackages = [];
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/bf317f5d-ffc2-45fd-9621-b645ff7223fc";
fsType = "xfs";
};
"/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
options = ["fmask=0077" "dmask=0077"];
};
};
environment.systemPackages = [
pkgs.ipmitool
];
system.stateVersion = "24.05";
}