Change disko config to more closely align with example
This commit is contained in:
@ -27,31 +27,31 @@ in {
|
|||||||
size = "100%";
|
size = "100%";
|
||||||
content = {
|
content = {
|
||||||
type = "luks";
|
type = "luks";
|
||||||
name = "cryptroot";
|
name = "crypted";
|
||||||
settings.allowDiscards = true;
|
settings.allowDiscards = true;
|
||||||
# passwordFile = "/tmp/secret.key"; # Interactive
|
# passwordFile = "/tmp/secret.key"; # Interactive
|
||||||
content = {
|
content = {
|
||||||
type = "btrfs";
|
type = "btrfs";
|
||||||
extraArgs = [ "-f" ];
|
extraArgs = [ "-f" ];
|
||||||
subvolumes = {
|
subvolumes = {
|
||||||
"@" = {
|
"/root" = {
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
||||||
};
|
};
|
||||||
"@home" = {
|
"/home" = {
|
||||||
mountpoint = "/home";
|
mountpoint = "/home";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
||||||
};
|
};
|
||||||
"@snapshots" = {
|
"/.snapshots" = {
|
||||||
mountpoint = "/.snapshots";
|
mountpoint = "/.snapshots";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
||||||
};
|
};
|
||||||
"@nix" = {
|
"/nix" = {
|
||||||
mountpoint = "/nix";
|
mountpoint = "/nix";
|
||||||
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
mountOptions = [ "compress=zstd" "noatime" "discard=async" "space_cache=v2" "ssd" ];
|
||||||
};
|
};
|
||||||
"@swap" = {
|
"/swap" = {
|
||||||
mountpoint = "/swap";
|
mountpoint = "/.swapvol";
|
||||||
swap.swapfile.size = swapfileSize;
|
swap.swapfile.size = swapfileSize;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user