dam you can't conditionally import, cringe

This commit is contained in:
martyTF 2025-12-16 17:01:01 +01:00
parent db5366102b
commit 720828a097
7 changed files with 68 additions and 77 deletions

View file

@ -5,29 +5,10 @@
...
}:
let
modules =
if config.networking.hostName == "marty-pc" then
[
./git.nix
./vscodium.nix
]
else if config.networking.hostName == "marty-latitude" then
[
./git.nix
./vscodium.nix
]
else if config.networking.hostName == "marty-server" then
[
./git.nix
]
else
[ ];
in
{
imports = modules;
imports = [
./git.nix
./vscodium.nix
];
}