diff options
Diffstat (limited to 'hosts/canadian-government-system/disks.nix')
| -rw-r--r-- | hosts/canadian-government-system/disks.nix | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/hosts/canadian-government-system/disks.nix b/hosts/canadian-government-system/disks.nix new file mode 100644 index 0000000..67b20b8 --- /dev/null +++ b/hosts/canadian-government-system/disks.nix @@ -0,0 +1,82 @@ +{ + disko.devices.disk = { + boot1 = { + content = { + partitions = { + efi = { + content = { + format = "vfat"; + mountOptions = [ "umask=0077" ]; + mountpoint = "/boot"; + type = "filesystem"; + }; + + size = "512M"; + type = "EF00"; + }; + + # the root partition is set up in boot2 + root.size = "100%"; + }; + + type = "gpt"; + }; + + device = "/dev/sda"; + type = "disk"; + }; + + boot2 = { + content = { + partitions = { + efi = { + content = { + format = "vfat"; + mountOptions = [ "umask=0077" ]; + mountpoint = "/boot"; + type = "filesystem"; + }; + + size = "512M"; + type = "EF00"; + }; + + root = { + content = { + extraArgs = [ + "-f" + "-d raid1" + "/dev/sda2"; + ]; + + subvolumes = { + "/nix" = { + mountOptions = [ + "compress=zstd" + "noatime" + ]; + + mountpoint = "/nix"; + }; + + "/root" = { + mountpoint = "/"; + mountOptions = [ "noatime" ]; + }; + }; + + type = "btrfs"; + }; + + size = "100%"; + }; + }; + + type = "gpt"; + }; + + device = "/dev/sdb"; + type = "disk"; + }; + }; +} |
