2024-11-17 20:28:14 +01:00
|
|
|
{
|
|
|
|
description = "Homelab configuration";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
2024-11-22 18:05:37 +01:00
|
|
|
impermanence.url = "github:nix-community/impermanence";
|
2024-11-17 20:28:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{ self, nixpkgs, ... }@inputs:
|
|
|
|
let
|
|
|
|
outputs = self.outputs;
|
|
|
|
utils = import ./utils.nix { inherit nixpkgs inputs outputs; };
|
2024-12-26 17:22:00 +01:00
|
|
|
|
|
|
|
homelabConfig = import ./config.nix;
|
|
|
|
roles = import ./roles { inherit utils; };
|
|
|
|
hosts = import ./hosts.nix { inherit homelabConfig roles; };
|
2024-11-17 20:28:14 +01:00
|
|
|
in
|
|
|
|
{
|
2024-12-26 17:22:00 +01:00
|
|
|
nixosConfigurations = nixpkgs.lib.mapAttrs (
|
|
|
|
hostname: value: (utils.mkSystem value // { inherit hostname; })
|
|
|
|
) hosts;
|
2024-11-17 20:28:14 +01:00
|
|
|
};
|
|
|
|
}
|