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

View file

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