Fix inputs

hosts-v2
Pyjacpp 2026-09-06 11:53:44 +02:00
parent a7a5b59fdb
commit 7ba95e86a4
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
1 changed files with 6 additions and 15 deletions

View File

@ -51,18 +51,6 @@
filePath = path + "/${name}/info.nix";
in
if builtins.pathExists filePath then
# let eval = evalModules {
# specialArgs = inputs;
# modules = [
# ./modules/crans
# {
# crans = import filePath;
# }
# # agenix.nixosModules.default
# ];
# };
# in
# eval.config
{
crans = import filePath;
}
@ -86,11 +74,14 @@
mapAttrs (
name: info:
nixosSystem {
specialArgs = {
specialArgs = inputs // {
hosts = all_hosts;
inherit inputs;
};
modules = [ (path + "/${name}") ] ++ [ info ] ++ baseModules;
modules = [
(path + "/${name}")
info
]
++ baseModules;
}
) hosts;
attrs_vm_info = listInfoToAttrs ./hosts/vm hosts_vm_info;