refactor(modules): move base modules under modules

This commit was merged in pull request #70.
This commit is contained in:
2026-08-27 23:48:35 -04:00
parent 200930035a
commit 105960ea3b
12 changed files with 210 additions and 283 deletions

View File

@@ -32,6 +32,9 @@ let
) (builtins.readDir dir)
);
moduleFiles = collectNixFiles (self + "/modules");
guestFiles = collectNixFiles (self + "/guests");
specialArgs = {
inherit inputs self;
my = self.lib;
@@ -42,10 +45,13 @@ let
guests = import ./guests.nix {
inherit
inputs
lib
self
specialArgs
bridgeName
moduleFiles
registry
;
};
@@ -57,17 +63,19 @@ let
inputs.nixpkgs.lib.nixosSystem {
inherit system specialArgs;
modules =
(collectNixFiles (self + "/modules"))
++ (collectNixFiles (self + "/guests"))
moduleFiles
++ guestFiles
++ [
inputs.chaotic.nixosModules.default
inputs.disko.nixosModules.disko
inputs.sops-nix.nixosModules.sops
inputs.stylix.nixosModules.stylix
registry.module
(self + "/system.nix")
(self + "/hosts/${hostName}")
{ networking.hostName = hostName; }
{
networking.hostName = hostName;
modules.host.enable = true;
}
];
};