Test
This commit is contained in:
parent
fc1ad73e7b
commit
3e42203ed7
1 changed files with 22 additions and 6 deletions
|
@ -4,6 +4,9 @@
|
||||||
device = "/dev/vda";
|
device = "/dev/vda";
|
||||||
enableCryptodisk = true;
|
enableCryptodisk = true;
|
||||||
};
|
};
|
||||||
|
boot.initrd.luks.devices."DISK".device = "/dev/vda2";
|
||||||
|
services.btrfs.autoScrub.enable = true;
|
||||||
|
services.btrfs.autoScrub.interval = "weekly";
|
||||||
|
|
||||||
disko.devices.disk.vda = {
|
disko.devices.disk.vda = {
|
||||||
device = "/dev/vda";
|
device = "/dev/vda";
|
||||||
|
@ -22,12 +25,25 @@
|
||||||
name = "crypted";
|
name = "crypted";
|
||||||
extraOpenArgs = [ "--allow-discards" ];
|
extraOpenArgs = [ "--allow-discards" ];
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "btrfs";
|
||||||
format = "ext4";
|
extraArgs = [ "-f" ];
|
||||||
mountpoint = "/";
|
subvolumes = {
|
||||||
};
|
"/root" = {
|
||||||
};
|
mountpoint = "/";
|
||||||
};
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
}; # root
|
||||||
|
"/home" = {
|
||||||
|
mountpoint = "/home";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
}; # home
|
||||||
|
"/nix" = {
|
||||||
|
mountpoint = "/nix";
|
||||||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||||||
|
}; # nix
|
||||||
|
}; # subvolumes
|
||||||
|
};# content
|
||||||
|
}; # content
|
||||||
|
}; # luks.partitions
|
||||||
}; # partitions
|
}; # partitions
|
||||||
}; # content
|
}; # content
|
||||||
}; # disko.devices.disk.vda
|
}; # disko.devices.disk.vda
|
||||||
|
|
Loading…
Reference in a new issue