Enable creation of other config files than init.lua (#246)

This commit is contained in:
Luc Chabassier 2023-04-20 22:41:37 +02:00 committed by GitHub
parent bc468178ae
commit a6eec507cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 283 additions and 115 deletions

View file

@ -6,8 +6,13 @@ default_pkgs: modules: {
wrap = {wrapRc = true;};
shared = import ./_shared.nix modules {
inherit pkgs lib;
config = {};
};
eval = lib.evalModules {
modules = (modules pkgs) ++ [module wrap];
modules = [module wrap] ++ shared.topLevelModules;
};
handleAssertions = config: let