yep, more dotfiles
1{ config 2, ... 3}: 4 5let 6 cfg = config.local.disk; 7in 8{ 9 config.disko.devices.disk.primary = { 10 device = cfg.device; 11 content = { 12 type = "gpt"; 13 partitions = { 14 ESP = { 15 size = "512M"; 16 type = "EF00"; 17 content = { 18 type = "filesystem"; 19 format = "vfat"; 20 mountpoint = "/boot"; 21 }; 22 }; 23 luks = { 24 size = "100%"; 25 content = { 26 type = "luks"; 27 # TODO: change to encrypted 28 name = "crypted"; 29 settings = { 30 allowDiscards = true; 31 # yubiKey = I want a YubiKey 32 }; 33 content = { 34 type = "btrfs"; 35 extraArgs = [ "-f" ]; 36 subvolumes = { 37 "/root" = { 38 mountpoint = "/"; 39 mountOptions = [ "compress=zstd" "noatime" ]; 40 }; 41 "/home" = { 42 mountpoint = "/home"; 43 mountOptions = [ "compress=zstd" "noatime" ]; 44 }; 45 "/nix" = { 46 mountpoint = "/nix"; 47 mountOptions = [ "compress=zstd" "noatime" ]; 48 }; 49 "/swap" = { 50 mountpoint = "/.swapvol"; 51 swap.swapfile.size = "${toString cfg.swapSize}G"; 52 }; 53 }; 54 }; 55 }; 56 }; 57 }; 58 }; 59 }; 60}