diff options
Diffstat (limited to 'server/disk-config.nix')
| -rw-r--r-- | server/disk-config.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/server/disk-config.nix b/server/disk-config.nix new file mode 100644 index 0000000..db0963f --- /dev/null +++ b/server/disk-config.nix @@ -0,0 +1,41 @@ +{ + disko.devices = { + disk = { + nvme0 = { + device = "/dev/sda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + size = "1M"; + type = "EF02"; + priority = 1; + }; + ESP = { + type = "EF00"; + size = "500M"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + root = { + size = "100%"; + content = { + type = "btrfs"; + extraArgs = [ "-f" ]; + subvolumes = { + "/rootfs" = { + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; + }; + }; +} |
