From 68783a0583bb21eb94bf956c6dc4b1f8574db96b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 9 Jan 2023 20:47:20 +0100 Subject: [PATCH] Fix module import --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index c369638..318d64a 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,9 @@ nixosModule = { config, libS, ... }@args: { _module.args.libS = lib.mkOverride 1001 (nixos-modules.lib { inherit lib config; }); - imports = (dir: map + imports = [ + nixos-modules.nixosModules.default + ] ++ (dir: map (file: ./. + "/${dir}/${file}") # assume that the nixos-modules repo is already imported if libS exists (lib.remove (lib.optionalString (lib.hasAttr "libS" args) "default.nix") (ls dir))