51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
description = "Homelab configuration using flakes";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
utils = {
|
|
url = "github:gytis-ivaskevicius/flake-utils-plus";
|
|
inputs.flake-utils.follows = "flake-utils";
|
|
};
|
|
};
|
|
|
|
outputs = inputs@{
|
|
self, nixpkgs,
|
|
flake-utils, utils,
|
|
...
|
|
}:
|
|
let
|
|
system = "x86_64-linux";
|
|
in
|
|
utils.lib.mkFlake {
|
|
inherit self inputs;
|
|
|
|
hostDefaults = {
|
|
inherit system;
|
|
|
|
modules = [
|
|
./modules
|
|
./users
|
|
];
|
|
};
|
|
|
|
hosts = {
|
|
Niko.modules = [ ./hosts/Niko ];
|
|
|
|
Ingress.modules = [ ./hosts/Ingress ];
|
|
Gitea.modules = [ ./hosts/Gitea ];
|
|
Vaultwarden.modules = [ ./hosts/Vaultwarden ];
|
|
|
|
Binnenpost.modules = [ ./hosts/Binnenpost ];
|
|
Production.modules = [ ./hosts/Production ];
|
|
ProductionGPU.modules = [ ./hosts/ProductionGPU ];
|
|
ACE.modules = [ ./hosts/ACE ];
|
|
|
|
Template.modules = [ ./hosts/Template ];
|
|
Development.modules = [ ./hosts/Development ];
|
|
Testing.modules = [ ./hosts/Testing ];
|
|
};
|
|
};
|
|
}
|