char/flake
nixos flake
git clone https://git.t4t.associates/char/flake
1c7378c
main
1{ lib , ...} : 2{ 3disko . devices . disk . primary = { 4device = lib . mkDefault "/dev/disk/by-id/nvme-WD_BLACK_SN850X_2000GB_240264805134" ; 5type = "disk" ; 6content = { 7type = "gpt" ; 8partitions = { 9ESP = { 10size = "4G" ; 11type = "EF00" ; 12content = { 13type = "filesystem" ; 14format = "vfat" ; 15mountpoint = "/boot" ; 16mountOptions = [ 17"defaults" 18"umask=0077" 19]; 20}; 21}; 22root = { 23size = "100%" ; 24type = "BF00" ; 25content = { 26type = "zfs" ; 27pool = "zroot" ; 28}; 29}; 30}; 31}; 32}; 33 34disko . devices . zpool . zroot = { 35type = "zpool" ; 36rootFsOptions = { 37acltype = "posixacl" ; 38xattr = "sa" ; 39dnodesize = "auto" ; 40}; 41datasets = { 42root = { 43type = "zfs_fs" ; 44mountpoint = "/" ; 45options . mountpoint = "legacy" ; 46}; 47nix = { 48type = "zfs_fs" ; 49mountpoint = "/nix" ; 50options = { 51mountpoint = "legacy" ; 52compression = "zstd" ; 53atime = "off" ; 54}; 55}; 56}; 57}; 58}