diff options
author | lassulus <git@lassul.us> | 2023-01-26 16:14:47 +0100 |
---|---|---|
committer | lassulus <git@lassul.us> | 2023-01-26 16:14:47 +0100 |
commit | 2b01c332826d2d59b7fdbf4a7924e827338920f9 (patch) | |
tree | 53ff83a08dabd050887a0e14f93d9c7ef4a02bbc /lass/1systems/hilum/disk.nix | |
parent | 18efc15b2a2694dac07f89d33bb1243492358a88 (diff) |
l hilum.r: create with disko, add script
Diffstat (limited to 'lass/1systems/hilum/disk.nix')
-rw-r--r-- | lass/1systems/hilum/disk.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/lass/1systems/hilum/disk.nix b/lass/1systems/hilum/disk.nix new file mode 100644 index 000000000..4a7253bab --- /dev/null +++ b/lass/1systems/hilum/disk.nix @@ -0,0 +1,53 @@ +{ lib, disk, ... }: +{ + disk = { + main = { + type = "disk"; + device = disk; + content = { + type = "table"; + format = "gpt"; + partitions = [ + { + name = "boot"; + type = "partition"; + start = "0"; + end = "1M"; + part-type = "primary"; + flags = ["bios_grub"]; + } + { + type = "partition"; + name = "ESP"; + start = "1MiB"; + end = "50%"; + fs-type = "fat32"; + bootable = true; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + } + { + name = "root"; + type = "partition"; + start = "50%"; + end = "100%"; + content = { + type = "luks"; + name = "hilum_luks"; + # keyFile = "/tmp/secret.key"; + content = { + type = "filesystem"; + format = "xfs"; + mountpoint = "/"; + }; + }; + } + ]; + }; + }; + }; +} + |