29 lines
727 B
Nix
29 lines
727 B
Nix
{
|
|
description = "Homelab configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
impermanence.url = "github:nix-community/impermanence";
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs, ... }@inputs:
|
|
let
|
|
outputs = self.outputs;
|
|
utils = import ./utils.nix { inherit nixpkgs inputs outputs; };
|
|
|
|
homelabConfig = import ./config.nix;
|
|
roles = import ./roles { inherit utils; };
|
|
hosts = import ./hosts.nix { inherit homelabConfig roles; };
|
|
in
|
|
{
|
|
nixosConfigurations = nixpkgs.lib.mapAttrs (
|
|
hostname: value:
|
|
(utils.mkSystem {
|
|
inherit hosts;
|
|
hostConfig = (value // { inherit hostname; });
|
|
})
|
|
) hosts;
|
|
};
|
|
}
|