From fefbd61378a8517e4d6fcd01c73db5c0cc69876d Mon Sep 17 00:00:00 2001 From: Nicole Dresselhaus Date: Tue, 10 Jun 2025 21:33:11 +0200 Subject: [PATCH] added disko.nix --- disco.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 disco.nix diff --git a/disco.nix b/disco.nix new file mode 100644 index 0000000..c5ccae5 --- /dev/null +++ b/disco.nix @@ -0,0 +1,25 @@ +{ disks ? [ "/dev/nvme0n1" ], ... }: + +{ + disk = { + device = builtins.elemAt disks 0; + type = "disk"; + content = { + type = "gpt"; + partitions = [ + { name = "ESP"; type = "EF00"; size = "512M"; content.type = "filesystem"; + content.format = "fat32"; mountpoint = "/boot"; } + { name = "rpool"; type = "BE00"; size = "60G"; + content.type = "zfs"; content.pool = "rpool"; } + { name = "tank"; type = "BE00"; + content.type = "zfs"; content.pool = "tank"; } + ]; + }; + }; + + zpool = { + rpool = { datasets = { root = { mountpoint = "/"; }; }; }; + tank = { datasets = { media = { mountpoint = "/tank"; }; }; }; + }; +} +