infrastructure/nixos-configurations/default.nix

24 lines
401 B
Nix

{
self,
pkgs,
nixpkgs-nixos-stable,
...
}@inputs:
let
inherit (pkgs.lib) genAttrs;
inherit (nixpkgs-nixos-stable.lib) nixosSystem;
configs = self.lib.foldersWithNix ./.;
in
genAttrs configs (
config:
nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs;
};
modules = [
self.nixosModules.default
./${config}/default.nix
];
}
)