{ disko.devices = { disk = { main = { type = "disk"; device = "/dev/disk/by-path/pci-0000:01:00.0-nvme-1"; content = { type = "gpt"; partitions = { ESP = { size = "512M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = ["umask=0077"]; }; }; nvme_luks = { size = "100%"; content = { type = "luks"; name = "nvme_crypted"; extraOpenArgs = []; settings = { # if you want to use the key for interactive login be sure there is no trailing newline # for example use `echo -n "password" > /tmp/secret.key` #keyFile = "/tmp/secret.key"; allowDiscards = true; }; content = { type = "btrfs"; extraArgs = ["-f"]; subvolumes = { "/root" = { mountpoint = "/"; mountOptions = ["subvol=root" "compress=zstd:1" "noatime" "ssd" "discard=async" "space_cache=v2" "commit=120"]; }; "/home" = { mountpoint = "/home"; mountOptions = ["subvol=home" "compress=zstd:1" "noatime" "ssd" "discard=async" "space_cache=v2" "commit=120" "autodefrag"]; }; "/nix" = { mountpoint = "/nix"; mountOptions = ["subvol=nix" "compress=zstd:1" "noatime" "ssd" "discard=async" "space_cache=v2" "commit=120" "nodatacow" "nodatasum"]; }; "/persist" = { mountpoint = "/persistent"; mountOptions = ["subvol=persistent" "compress=zstd:1" "noatime" "ssd" "discard=async" "space_cache=v2" "commit=120"]; }; "/log" = { mountpoint = "/var/log"; mountOptions = ["subvol=log" "compress=zstd:1" "noatime" "ssd" "discard=async" "space_cache=v2" "commit=120" "nodatacow" "nodatasum"]; }; "/swap" = { mountpoint = "/swap"; swap.swapfile.size = "8G"; }; }; }; }; }; }; }; }; }; nodev = { "/home/lillian/Downloads" = { fsType = "tmpfs"; mountOptions = [ "size=4G" ]; }; }; }; }