You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
{ device ? throw "Set this to your disk device, e.g. /dev/disk/by-id/id", swapSize ? "8G", ... }: { disko.devices = { disk.main = { inherit device; type = "disk"; content = { type = "gpt"; partitions = { ESP = { name = "boot"; size = "500M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountOptions = [ "fmask=0022" "dmask=0022" ]; mountpoint = "/boot"; }; }; root = { name = "root"; size = "100%"; content = { type = "luks"; name = "crypted"; settings.allowDiscards = true; passwordFile = "/tmp/secret.key"; content = { type = "btrfs"; extraArgs = [ "-f" ];
subvolumes = { "/root" = { mountOptions = [ "compress=zstd" ]; mountpoint = "/"; };
"/home" = { mountOptions = [ "compress=zstd" ]; mountpoint = "/home"; };
"/nix" = { mountOptions = [ "compress=zstd" ]; mountpoint = "/nix"; };
"/swap" = { mountOptions = [ "noatime" ]; mountpoint = "/swap"; swap.swapfile.size = swapSize; }; }; }; }; }; }; }; }; }; }
|