From f839e37b9bf6980d4b9fdcfb1c87861bdf9904b6 Mon Sep 17 00:00:00 2001 From: twoneis Date: Sun, 21 Jul 2024 01:58:39 +0200 Subject: [PATCH] added disks to tunyon --- devices/inkvine/default.nix | 1 + devices/tunyon/disks.nix | 7 +++++++ options.nix | 8 ++------ 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 devices/tunyon/disks.nix diff --git a/devices/inkvine/default.nix b/devices/inkvine/default.nix index 2d9adf1..018c7a1 100644 --- a/devices/inkvine/default.nix +++ b/devices/inkvine/default.nix @@ -1,6 +1,7 @@ { pkgs, config, ... }: { imports = [ ./options.nix + ./disks.nix ]; nixpkgs = { diff --git a/devices/tunyon/disks.nix b/devices/tunyon/disks.nix new file mode 100644 index 0000000..622bc1d --- /dev/null +++ b/devices/tunyon/disks.nix @@ -0,0 +1,7 @@ +{ ... }: { + disks = { + boot = ""; + crypt = ""; + root = ""; + }; +} diff --git a/options.nix b/options.nix index 7c48d1b..c09415d 100644 --- a/options.nix +++ b/options.nix @@ -1,7 +1,7 @@ { lib, ... }: { options = let inherit (lib) mkOption mkEnableOption; - inherit (lib.types) nullOr str attrsOf; + inherit (lib.types) nullOr attrsOf str; in { full = mkEnableOption "Enable complete configuration for end-user machine"; @@ -17,11 +17,7 @@ disks = mkOption { type = attrsOf str; - default = { - boot = ""; - crypt = ""; - root = ""; - }; + default = { }; example = { boot = "4672-C1A9"; crypt = "747ae319-f189-44f5-9737-a42672e2c02d";