test
This commit is contained in:
parent
cc5f57618a
commit
c6d5d81f32
1 changed files with 6 additions and 17 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
services.btrfs.autoScrub.enable = true;
|
||||
services.btrfs.autoScrub.interval = "weekly";
|
||||
boot.initrd.secrets
|
||||
|
||||
disko.devices.disk.nvme0 = {
|
||||
device = "/dev/nvme0n1";
|
||||
|
@ -63,27 +64,15 @@
|
|||
mountpoint = "/nix/.snapshots";
|
||||
mountOptions = [ "compress=zstd" "noatime" ];
|
||||
}; # nix
|
||||
# Swap partition
|
||||
"/swap" = {
|
||||
mountpoint = "/swap";
|
||||
swap.swapfile.size = "64G";
|
||||
}; # swap
|
||||
}; # subvolumes
|
||||
}; # content.content
|
||||
}; # content
|
||||
} # 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
|
||||
}; # content
|
||||
}; # disko.devices.disk.nvme0
|
||||
|
|
Loading…
Reference in a new issue