1.1 kB · 47 lines · Created 1y ago
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ disko.devices = { disk = { main = { type = "disk"; device = "/dev/vda"; content = { type = "gpt"; partitions = { ESP = { priority = 1; name = "ESP"; start = "1M"; end = "128M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; root = { size = "85%"; content = { type = "btrfs"; extraArgs = [ "-f" ]; # Override existing partition mountpoint = "/"; mountOptions = [ "compress=zstd" "noatime" ]; }; }; plainSwap = { size = "15%"; content = { type = "swap"; discardPolicy = "both"; }; }; }; }; }; }; };}