Add internal modules folder
diff --git a/flake.nix b/flake.nix
index ba8ab1f..dcaa1ae 100644
--- a/flake.nix
+++ b/flake.nix
@@ -189,23 +189,29 @@
{
inherit system;
- modules = [
- (nixpkgs.lib.pipe ./modules [
- utils.nixFilesIn
- (utils.interpretNonstandardModule (args:
- args
- // {
- home = args.config.home-manager.users.${username};
- home-options =
- nixpkgs.lib.traceVal (normalizeOptions
- (args.options.home-manager.users.type.getSubOptions [ ]));
- inherit system utils;
- }))
- ])
- {
- minion = import ./config.nix;
- }
- ];
+ modules =
+ let
+ modulesIn = folder:
+ (nixpkgs.lib.pipe folder [
+ utils.nixFilesIn
+ (utils.interpretNonstandardModule (args:
+ args
+ // {
+ home = args.config.home-manager.users.${username};
+ home-options =
+ nixpkgs.lib.traceVal (normalizeOptions
+ (args.options.home-manager.users.type.getSubOptions [ ]));
+ inherit system utils;
+ }))
+ ]);
+ in
+ [
+ (modulesIn ./modules)
+ (modulesIn ./internal)
+ {
+ minion = import ./config.nix;
+ }
+ ];
specialArgs = inputs // { inherit inputs username; };
});