From 300eb66afc8450fd4b01a63b6781eec2d3a96821 Mon Sep 17 00:00:00 2001 From: cnst Date: Tue, 28 Oct 2025 19:25:34 +0100 Subject: [PATCH] bunk things --- hosts/bunk/default.nix | 10 +---- hosts/bunk/hardware-configuration.nix | 58 +++++++++++---------------- 2 files changed, 25 insertions(+), 43 deletions(-) diff --git a/hosts/bunk/default.nix b/hosts/bunk/default.nix index b0a109ae..8bcfb1d6 100644 --- a/hosts/bunk/default.nix +++ b/hosts/bunk/default.nix @@ -38,17 +38,11 @@ in ./settings.nix ]; + boot.initrd.luks.devices."luks-0ad53967-bb38-4485-be75-ca55ae4c3b68".device = "/dev/disk/by-uuid/0ad53967-bb38-4485-be75-ca55ae4c3b68"; networking.hostName = "bunk"; - swapDevices = [ - { - device = "/var/lib/swapfile"; - size = 32 * 1024; - } - ]; - environment.variables.NH_FLAKE = "/home/cnst/.nix-config"; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion - system.stateVersion = lib.mkDefault "23.11"; + system.stateVersion = lib.mkDefault "25.05"; } diff --git a/hosts/bunk/hardware-configuration.nix b/hosts/bunk/hardware-configuration.nix index 9a4a89b9..029a426c 100644 --- a/hosts/bunk/hardware-configuration.nix +++ b/hosts/bunk/hardware-configuration.nix @@ -1,47 +1,35 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + { - config, - lib, - modulesPath, - ... -}: -{ - imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot = { - initrd = { - availableKernelModules = [ - "nvme" - "xhci_pci" - "ahci" - "usbhid" - "usb_storage" - "sd_mod" - ]; - kernelModules = [ "amdgpu" ]; + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/d15672b5-dc97-4f99-9ad2-70f9ddf20447"; + fsType = "btrfs"; + options = [ "subvol=@" ]; }; - kernelModules = [ "kvm-amd" ]; - extraModulePackages = [ ]; - }; + boot.initrd.luks.devices."luks-2f0dfe96-bc63-4f38-b190-3d9fa45dc560".device = "/dev/disk/by-uuid/2f0dfe96-bc63-4f38-b190-3d9fa45dc560"; - fileSystems."/" = { - device = "/dev/disk/by-uuid/da41c89a-7ab8-4697-9a14-0d115b97cc2e"; - fsType = "ext4"; - }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/F3FC-3CDF"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; - boot.initrd.luks.devices."luks-e75ac560-748f-4071-bbe7-479678400be3".device = - "/dev/disk/by-uuid/e75ac560-748f-4071-bbe7-479678400be3"; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/7E84-D168"; - fsType = "vfat"; - options = [ - "fmask=0022" - "dmask=0022" + swapDevices = + [ { device = "/dev/disk/by-uuid/e6464248-0d1e-4950-bf48-4cebeabaf871"; } ]; - }; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's -- 2.51.0