From f08f3812f40322b6098d75573413ed83f358871f Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Sun, 1 Dec 2024 22:30:26 -0500 Subject: Cleanup xnet module and add baseline modules With these changes, the xnet module is useable as a system builder. At this point, it is still undecided whether all configuration will be generalized into this module, rather than keeping mini-modules local to the machine they will run on. --- modules/xnet/disk/layouts/mirror.nix | 43 ------------------------------------ modules/xnet/disk/layouts/single.nix | 29 ------------------------ 2 files changed, 72 deletions(-) delete mode 100644 modules/xnet/disk/layouts/mirror.nix delete mode 100644 modules/xnet/disk/layouts/single.nix (limited to 'modules/xnet/disk/layouts') diff --git a/modules/xnet/disk/layouts/mirror.nix b/modules/xnet/disk/layouts/mirror.nix deleted file mode 100644 index 5a9835b..0000000 --- a/modules/xnet/disk/layouts/mirror.nix +++ /dev/null @@ -1,43 +0,0 @@ -devices: { - disk = builtins.listToAttrs (map - (device: { - name = device; - value = { - type = "disk"; - device = "/dev/${device}"; - content = { - type = "gpt"; - partitions = { - ESP = { - size = "1G"; - type = "EF00"; - content = { - type = "mdraid"; - name = "boot"; - }; - }; - ZFS = { - size = "100%"; - content = { - type = "zfs"; - pool = "zroot"; - }; - }; - }; - }; - }; - }) - devices); - mdadm = { - boot = { - type = "mdadm"; - level = 1; - metadata = "1.0"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - }; -} diff --git a/modules/xnet/disk/layouts/single.nix b/modules/xnet/disk/layouts/single.nix deleted file mode 100644 index b779a39..0000000 --- a/modules/xnet/disk/layouts/single.nix +++ /dev/null @@ -1,29 +0,0 @@ -device: { - disk = { - "${device}" = { - type = "disk"; - device = "/dev/${device}"; - content = { - type = "gpt"; - partitions = { - ESP = { - size = "1G"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - ZFS = { - size = "100%"; - content = { - type = "zfs"; - pool = "zroot"; - }; - }; - }; - }; - }; - }; -} -- cgit v1.3.1