modularizing modules ig

This commit is contained in:
martyTF 2025-12-16 16:50:47 +01:00
parent 9c0b46c7d3
commit 3d09e64139
6 changed files with 83 additions and 18 deletions

View file

@ -5,9 +5,30 @@
...
}:
let
modules =
if config.networking.hostName == "marty-pc" then
[
./system/import_system.nix
./modules/imports.nix
]
else if config.networking.hostName == "marty-latitude" then
[
./system/import_system.nix
./modules/imports.nix
]
else if config.networking.hostName == "marty-server" then
[
./system/import_system.nix
./modules/imports.nix
]
else
[ ];
in
{
imports = [
./system/imports.nix
./modules/imports.nix
];
imports = modules;
}