This commit is contained in:
iFargle 2024-02-06 19:58:43 +09:00
parent cc5f57618a
commit c6d5d81f32

View file

@ -3,6 +3,7 @@
services.btrfs.autoScrub.enable = true; services.btrfs.autoScrub.enable = true;
services.btrfs.autoScrub.interval = "weekly"; services.btrfs.autoScrub.interval = "weekly";
boot.initrd.secrets
disko.devices.disk.nvme0 = { disko.devices.disk.nvme0 = {
device = "/dev/nvme0n1"; device = "/dev/nvme0n1";
@ -63,27 +64,15 @@
mountpoint = "/nix/.snapshots"; mountpoint = "/nix/.snapshots";
mountOptions = [ "compress=zstd" "noatime" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; # nix }; # nix
# Swap partition
"/swap" = {
mountpoint = "/swap";
swap.swapfile.size = "64G";
}; # swap
}; # subvolumes }; # subvolumes
}; # content.content }; # content.content
}; # content }; # content
} # partition 2 (/ BTRFS) } # partition 2 (/ BTRFS)
{
name = "LUKS-SWAP";
start = "-64GiB";
end = "100%";
content = {
type = "luks";
name = "SWAP";
settings = {
allowDiscards = true;
keyFile = "/mnt-root/etc/swap.key";
}; # content
content = {
type = "swap";
resumeDevice = true; # Hibernation
}; # content.ontent
};# content
} # partition 3 (SWAP)
]; # partitions ]; # partitions
}; # content }; # content
}; # disko.devices.disk.nvme0 }; # disko.devices.disk.nvme0