diff options
author | makefu <github@syntax-fehler.de> | 2021-03-12 20:11:43 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2021-03-12 20:11:43 +0100 |
commit | b30e99dfb2d040ec47e2e772ca0d25b97cf54e21 (patch) | |
tree | 9c08ed1fdc6b5516db2f14eac3499b1ee222e955 /makefu/1systems/wbob/nuc | |
parent | 1ceb7c79fe6038059a85e094446e129f4408d7b6 (diff) |
ma wbob.r: split config and hardware
Diffstat (limited to 'makefu/1systems/wbob/nuc')
-rw-r--r-- | makefu/1systems/wbob/nuc/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/makefu/1systems/wbob/nuc/default.nix b/makefu/1systems/wbob/nuc/default.nix new file mode 100644 index 000000000..d4993dfd0 --- /dev/null +++ b/makefu/1systems/wbob/nuc/default.nix @@ -0,0 +1,23 @@ +let + rootdisk = "/dev/disk/by-id/ata-TS256GMTS800_C613840115"; + datadisk = "/dev/disk/by-id/ata-HGST_HTS721010A9E630_JR10006PH3A02F"; +in { + boot.loader.grub.device = rootdisk; + hardware.cpu.intel.updateMicrocode = true; + boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + + boot.kernelModules = [ + "kvm-intel" "snd-seq" "snd-rawmidi" + ]; + fileSystems = { + "/" = { + device = rootdisk + "-part1"; + fsType = "ext4"; + }; + "/data" = { + device = datadisk + "-part1"; + fsType = "ext4"; + }; + }; + swapDevices = [ { device = "/var/swap"; } ]; +} |