From 5aa3ebcb998c1d489926e4f702ee98f5175240e6 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 22 Oct 2022 23:35:16 +0200 Subject: types: refactor topLevel into devices, move output generators to lib --- default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 00333a8..3fe2bbb 100644 --- a/default.nix +++ b/default.nix @@ -4,18 +4,18 @@ let eval = cfg: lib.evalModules { modules = lib.singleton { # _file = toString input; - imports = lib.singleton { topLevel.devices = cfg; }; + imports = lib.singleton { devices = cfg; }; options = { - topLevel = lib.mkOption { - type = types.topLevel; + devices = lib.mkOption { + type = types.devices; }; }; }; }; in { types = types; - create = cfg: (eval cfg).config.topLevel.create; - mount = cfg: (eval cfg).config.topLevel.mount; - config = cfg: (eval cfg).config.topLevel.config; - packages = cfg: (eval cfg).config.topLevel.packages; + create = cfg: types.diskoLib.create (eval cfg).config.devices; + mount = cfg: types.diskoLib.mount (eval cfg).config.devices; + config = cfg: types.diskoLib.config (eval cfg).config.devices; + packages = cfg: types.diskoLib.packages (eval cfg).config.devices; } -- cgit v1.2.3