From cbde891d1ced129f6284cbadade652182aa5d2fb Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Wed, 14 Feb 2024 15:13:20 -0600 Subject: Fixing my earlier mistakes --- modules/nickel.nix | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'modules/nickel.nix') diff --git a/modules/nickel.nix b/modules/nickel.nix index 948dbaf..4d22c70 100644 --- a/modules/nickel.nix +++ b/modules/nickel.nix @@ -2,6 +2,7 @@ with builtins // lib; let cfg = config.nickel; + importOption = p: (import p { inherit pkgs lib; } cfg.path).option; action = mkOption { type = types.enum [ "cmd_spawn" @@ -57,11 +58,13 @@ in { description = "Relative path to nickelMenu within src"; }; - file = mkOption { - type = options.file.type; - default = {}; - description = "Files relative to ${cfg.path}"; - }; + file = importOption ./lib/file.nix; + manifest = importOption ./lib/manifest.nix; + # file = mkOption { + # type = options.file.type; + # default = {}; + # description = "Files relative to ${cfg.path}"; + # }; menu = { item = mkOption { @@ -133,11 +136,11 @@ in { ]; }; - file = mapAttrs' (n: v: { - name = "nm-${n}"; - value = v // { - target = "${cfg.path}/${v.target}"; - }; - }) cfg.file + # file = mapAttrs' (n: v: { + # name = "nm-${n}"; + # value = v // { + # target = "${cfg.path}/${v.target}"; + # }; + # }) cfg.file; }; } -- cgit v1.2.3