restructure code

This commit is contained in:
Pim Kunis 2023-12-29 12:47:59 +01:00
parent c2b8131adc
commit 6d258fe5ae
28 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
pkgs-unstable = nixpkgs-unstable.legacyPackages.${system}; pkgs-unstable = nixpkgs-unstable.legacyPackages.${system};
machines = import ./machines; machines = import ./nixos/machines;
# TODO: Maybe use mergeAttrLists # TODO: Maybe use mergeAttrLists
mkNixosSystems = systemDef: mkNixosSystems = systemDef:
nixpkgs.lib.foldlAttrs nixpkgs.lib.foldlAttrs
@ -70,7 +70,7 @@
machine.nixosModule machine.nixosModule
disko.nixosModules.disko disko.nixosModules.disko
agenix.nixosModules.default agenix.nixosModules.default
./configuration.nix ./nixos
{ networking.hostName = machine.name; } { networking.hostName = machine.name; }
]; ];
}); });