Change disko config to more closely align with example

This commit is contained in:
Sravan Balaji
2024-03-24 14:40:36 -04:00
parent 56c71036c6
commit 2b82e449bf

View File

@ -27,31 +27,31 @@ in {
size = "100%";
content = {
type = "luks";
name = "cryptroot";
name = "crypted";
settings.allowDiscards = true;
# passwordFile = "/tmp/secret.key"; # Interactive
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"@" = {
"/root" = {
mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
};
"@home" = {
"/home" = {
mountpoint = "/home";
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
};
"@snapshots" = {
"/.snapshots" = {
mountpoint = "/.snapshots";
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
};
"@nix" = {
"/nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
};
"@swap" = {
mountpoint = "/swap";
"/swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = swapfileSize;
};
};