From bc8c927504fc9f3018317a6eb1e288a26bf98d62 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Fri, 1 Nov 2024 13:34:24 +0100 Subject: [PATCH] fix(host/terebralia-sulcata): hardware config --- hardware/intel-nuc4.nix | 73 +++++++++++++--------------- hosts/terebralia-sulcata/default.nix | 2 +- 2 files changed, 36 insertions(+), 39 deletions(-) diff --git a/hardware/intel-nuc4.nix b/hardware/intel-nuc4.nix index fa1e095..50d80bd 100644 --- a/hardware/intel-nuc4.nix +++ b/hardware/intel-nuc4.nix @@ -7,44 +7,41 @@ boot.kernelModules = ["kvm-intel"]; boot.extraModulePackages = []; - disko.devices = { - disk = { - main = { - device = "/dev/disk/by-id/ata-SanDisk_SD6SF1M128G1022_142661400678"; - type = "disk"; - content = { - type = "gpt"; - partitions = { - boot = { - size = "1M"; - type = "EF02"; # for grub MBR - }; - ESP = { - size = "1G"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - mountOptions = ["umask=0077"]; - }; - }; - plainSwap = { - size = "8G"; - content = { - type = "swap"; - discardPolicy = "both"; - resumeDevice = true; - }; - }; - root = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - }; - }; + disko.devices.disk.main = { + device = "/dev/disk/by-id/ata-SanDisk_SD6SF1M128G1022_142261400678"; + + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + size = "1M"; + type = "EF02"; # for grub MBR + }; + ESP = { + size = "1G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = ["umask=0077"]; + }; + }; + plainSwap = { + size = "8G"; + content = { + type = "swap"; + discardPolicy = "both"; + resumeDevice = true; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; }; }; }; diff --git a/hosts/terebralia-sulcata/default.nix b/hosts/terebralia-sulcata/default.nix index fe3d08b..0bc1b1e 100644 --- a/hosts/terebralia-sulcata/default.nix +++ b/hosts/terebralia-sulcata/default.nix @@ -1,6 +1,6 @@ {...}: { imports = [ - ../../hardware/intel-nuc.nix + ../../hardware/intel-nuc4.nix ../../modules/snapclient.nix ./topology.nix ];