hosts/hades tweaks

This commit is contained in:
Serenity-F 2024-09-10 19:36:52 +10:00
parent 2e1c69d55f
commit ed67bda4e0
2 changed files with 6 additions and 7 deletions

View file

@ -2,6 +2,7 @@
disko.devices = { disko.devices = {
disk = { disk = {
sda = { sda = {
type = "disk"; type = "disk";
device = "/dev/sda"; device = "/dev/sda";
@ -27,13 +28,12 @@
type = "luks"; type = "luks";
name = "pomegranate"; name = "pomegranate";
# disable settings.keyFile if you want to use interactive password entry # disable settings.keyFile if you want to use interactive password entry
passwordFile = "/tmp/secret.key"; # Interactive #passwordFile = "/tmp/secret.key"; # Interactive
settings = { settings = {
allowDiscards = true; allowDiscards = true;
#keyFile = "/tmp/secret.key"; #keyFile = "/tmp/secret.key";
}; };
# additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; #additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
content = { content = {
type = "btrfs"; type = "btrfs";
extraArgs = [ "-f" ]; extraArgs = [ "-f" ];
@ -49,16 +49,16 @@
"/nix" = { "/nix" = {
mountpoint = "/nix"; mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ]; mountOptions = [ "compress=zstd" "noatime" ];
};
"/swap" = { "/swap" = {
mountpoint = "/.swapvol"; mountpoint = "/.swapvol";
swap.swapfile.size = "8192M"; swap.swapfile.size = "8192M";
}; };
}; };
};
}; };
}; };
};
}; };
}; };
}; };

View file

@ -7,7 +7,6 @@
imports = imports =
[ [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
./disko-config.nix
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ];