From 359587101980699ae2d0c242df93400bd2921dee Mon Sep 17 00:00:00 2001 From: atagen Date: Tue, 9 Sep 2025 11:44:09 +1000 Subject: [PATCH] laptop necessaries --- hosts/adrift/boot.nix | 6 +++--- hosts/adrift/fs.nix | 22 ++++++++++------------ hosts/adrift/stateversion.nix | 4 ++++ 3 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 hosts/adrift/stateversion.nix diff --git a/hosts/adrift/boot.nix b/hosts/adrift/boot.nix index 81abe3a..6ea7b57 100644 --- a/hosts/adrift/boot.nix +++ b/hosts/adrift/boot.nix @@ -1,4 +1,4 @@ -{scope, ...}: +{ scope, ... }: scope "boot" { kernelParams = [ "mitigations=off" @@ -15,7 +15,7 @@ scope "boot" { "sd_mod" "rtsx_pci_sdmmc" ]; - initrd.kernelModules = ["dm-snapshot"]; + initrd.kernelModules = [ "dm-snapshot" ]; kernelModules = [ "iwlwifi" "kvm-intel" @@ -23,7 +23,7 @@ scope "boot" { loader.systemd-boot = { enable = true; consoleMode = "max"; - configurationLimit = 2; + configurationLimit = 5; }; loader.efi.canTouchEfiVariables = true; } diff --git a/hosts/adrift/fs.nix b/hosts/adrift/fs.nix index 0dabfb1..f36d6b3 100644 --- a/hosts/adrift/fs.nix +++ b/hosts/adrift/fs.nix @@ -1,19 +1,17 @@ _: { - fileSystems = { - "/boot" = { - device = "/dev/disk/by-uuid/1C5C-8FF4"; + fileSystems."/" = + { device = "/dev/disk/by-uuid/c7f24f1b-e8b3-4fa2-8275-6bcd5d238334"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/2C1B-BA44"; fsType = "vfat"; }; - "/" = { - device = "/dev/disk/by-uuid/26389642-cf51-4c58-98e9-1fe491a11bb9"; - fsType = "ext4"; - }; - }; - - swapDevices = [ - { device = "/dev/disk/by-uuid/a732641d-1233-45a7-8614-53caed60f11b"; } - ]; + swapDevices = + [ { device = "/dev/disk/by-uuid/237f21bf-2dc4-4858-b1d0-64a8fc88bbef"; } + ]; } diff --git a/hosts/adrift/stateversion.nix b/hosts/adrift/stateversion.nix new file mode 100644 index 0000000..860969d --- /dev/null +++ b/hosts/adrift/stateversion.nix @@ -0,0 +1,4 @@ +{ ... }: +{ + system.stateVersion = "23.11"; +}