smolder: new install

This commit is contained in:
Artemis Tosini 2024-11-20 22:01:34 +00:00
parent dd972fac9e
commit 2e5c10c06d
Signed by: artemist
SSH key fingerprint: SHA256:EsuWCwx6fjxxExxf65rX+ocQJJAdw4R1KarpFue6Uwc
3 changed files with 14 additions and 16 deletions

View file

@ -24,12 +24,5 @@ in
kernelPackages = pkgs.linuxPackagesFor kernel; kernelPackages = pkgs.linuxPackagesFor kernel;
tmp.cleanOnBoot = true; tmp.cleanOnBoot = true;
initrd.luks.devices.${config.networking.hostName} = {
device = "/dev/disk/by-uuid/b6b4bd3d-d7e1-463e-9a73-6d0f620e914a";
preLVM = true;
allowDiscards = true;
bypassWorkqueues = true;
};
}; };
} }

View file

@ -10,5 +10,5 @@
]; ];
networking.hostName = "smolder"; networking.hostName = "smolder";
system.stateVersion = "23.11"; system.stateVersion = "24.11";
} }

View file

@ -10,24 +10,30 @@
}: }:
{ {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" ]; boot.initrd.availableKernelModules = [ "nvme" ];
boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ]; boot.kernelModules = [ ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/88c860f3-79e4-4ab0-905b-281560ae626f"; device = "UUID=5bdb4b7f-092b-4117-a865-6828bf78a52e";
fsType = "ext4"; fsType = "bcachefs";
}; };
fileSystems."/boot" = { fileSystems."/boot" = {
device = "/dev/disk/by-uuid/cdf9ee7e-c076-49b0-b32f-bb92d1eb596d"; device = "/dev/disk/by-uuid/8445-860A";
fsType = "ext4"; fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
}; };
swapDevices = [ { device = "/dev/disk/by-uuid/30f73056-e5c0-4349-bc85-b9a842f4458e"; } ]; swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's
@ -37,5 +43,4 @@
# networking.interfaces.enP4p65s0.useDHCP = lib.mkDefault true; # networking.interfaces.enP4p65s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
} }