diff options
Diffstat (limited to 'hosts/desktop/disko.nix')
| -rw-r--r-- | hosts/desktop/disko.nix | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/hosts/desktop/disko.nix b/hosts/desktop/disko.nix new file mode 100644 index 0000000..8e93ef7 --- /dev/null +++ b/hosts/desktop/disko.nix @@ -0,0 +1,76 @@ +{ + disko.devices = { + disk = { + main = { + type = "disk"; + device = "/dev/nvme0n1"; + content = { + type = "gpt"; + partitions = { + ESP = { + size = "2G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + root = { + size = "100%"; + content = { + type = "btrfs"; + extraArgs = [ "-f" ]; + subvolumes = { + "root" = { + mountpoint = "/"; + mountOptions = [ "compress=zstd" "noatime" ]; + }; + "nix" = { + mountpoint = "/nix"; + mountOptions = [ "compress=zstd" "noatime" ]; + }; + "home" = { + mountpoint = "/home"; + mountOptions = [ "compress=zstd" "noatime" "autodefrag" ]; + }; + "llms" = { + mountpoint = "/llms"; + mountOptions = [ "compress=zstd" "noatime" "autodefrag"]; + }; + "vms" = { + mountpoint = "/vms"; + mountOptions = [ "noatime" "autodefrag" ]; + }; + "swap" = { + mountpoint = "/.swapvol"; + swap.swapfile.size = "32G"; + }; + }; + }; + }; + }; + }; + }; + media = { + type = "disk"; + device = "/dev/sda"; + content = { + type = "gpt"; + partitions = { + media = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/media"; + # extraArgs = [ "-f" ]; + }; + }; + }; + }; + }; + }; + }; +} |
