hosts: import local modules by default

This commit is contained in:
Anthony Rodriguez 2024-12-18 09:24:23 +01:00
parent ffb60ac869
commit 8338818b7d
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -3,13 +3,12 @@
mkSystem = args: mkSystem = args:
inputs.nixpkgs.lib.nixosSystem { inputs.nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs lib';}; specialArgs = {inherit inputs lib';};
modules = args.modules or []; modules = [../modules] ++ args.modules;
}; };
in { in {
vamos = mkSystem { vamos = mkSystem {
modules = [ modules = [
./vamos ./vamos
../modules
inputs.nixos-hardware.nixosModules.framework-13-7040-amd inputs.nixos-hardware.nixosModules.framework-13-7040-amd
]; ];
}; };
@ -17,7 +16,6 @@ in {
solaire = mkSystem { solaire = mkSystem {
modules = [ modules = [
./solaire ./solaire
../modules
]; ];
}; };