summaryrefslogtreecommitdiffstats
path: root/1systems/wbob/nuc
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-03-12 20:11:43 +0100
committermakefu <github@syntax-fehler.de>2021-03-12 20:11:43 +0100
commit39483ff77a43ae5c2cab9b902d371fd13dc2f530 (patch)
tree0f3d00351a01e16bbc08c224988c9593767cb2a2 /1systems/wbob/nuc
parentb8ba588f8a8df38e159b4ebe75524cf0035ad31d (diff)
ma wbob.r: split config and hardware
Diffstat (limited to '1systems/wbob/nuc')
-rw-r--r--1systems/wbob/nuc/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/1systems/wbob/nuc/default.nix b/1systems/wbob/nuc/default.nix
new file mode 100644
index 000000000..d4993dfd0
--- /dev/null
+++ b/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"; } ];
+}