aboutsummaryrefslogtreecommitdiff
path: root/infra/hosts/indra/disk.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/hosts/indra/disk.nix')
-rw-r--r--infra/hosts/indra/disk.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/infra/hosts/indra/disk.nix b/infra/hosts/indra/disk.nix
new file mode 100644
index 0000000..5aab05b
--- /dev/null
+++ b/infra/hosts/indra/disk.nix
@@ -0,0 +1,41 @@
+{
+ flake.modules.nixos.indra =
+ { config, ... }:
+ {
+ infra.zfs.pool = "zroot";
+
+ disko.devices.disk.main = {
+ type = "disk";
+ imageSize = "100G";
+ device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0";
+ content = {
+ type = "gpt";
+ partitions = {
+ bios = {
+ size = "1M";
+ type = "EF02";
+ };
+
+ boot = {
+ size = "512M";
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/boot";
+ mountOptions = [ "noatime" ];
+ };
+ };
+
+ zfs = {
+ size = "100%";
+ content = {
+ type = "zfs";
+ pool = config.infra.zfs.pool;
+ };
+ };
+ };
+ };
+ };
+
+ };
+}