mirror of https://gitlab.crans.org/nounous/nixos
Fix inputs
parent
a7a5b59fdb
commit
7ba95e86a4
21
flake.nix
21
flake.nix
|
|
@ -51,18 +51,6 @@
|
||||||
filePath = path + "/${name}/info.nix";
|
filePath = path + "/${name}/info.nix";
|
||||||
in
|
in
|
||||||
if builtins.pathExists filePath then
|
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;
|
crans = import filePath;
|
||||||
}
|
}
|
||||||
|
|
@ -86,11 +74,14 @@
|
||||||
mapAttrs (
|
mapAttrs (
|
||||||
name: info:
|
name: info:
|
||||||
nixosSystem {
|
nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = inputs // {
|
||||||
hosts = all_hosts;
|
hosts = all_hosts;
|
||||||
inherit inputs;
|
|
||||||
};
|
};
|
||||||
modules = [ (path + "/${name}") ] ++ [ info ] ++ baseModules;
|
modules = [
|
||||||
|
(path + "/${name}")
|
||||||
|
info
|
||||||
|
]
|
||||||
|
++ baseModules;
|
||||||
}
|
}
|
||||||
) hosts;
|
) hosts;
|
||||||
attrs_vm_info = listInfoToAttrs ./hosts/vm hosts_vm_info;
|
attrs_vm_info = listInfoToAttrs ./hosts/vm hosts_vm_info;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue