67 lines
2.1 KiB
Nix
67 lines
2.1 KiB
Nix
{
|
|
description = "Server Config Controller";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
|
quasiSecrets.url = "git+ssh://git@github.com/RoyDumblauskas/server-semi-secrets/main?shallow=1";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-24.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
impermanence.url = "github:nix-community/impermanence";
|
|
# This is a path to the services I've declared.
|
|
# It just happens to be stored in the same repository (relative),
|
|
# but could well be a separate repository
|
|
tests-service.url = "github:RoyDumblauskas/tests-service/main?shallow=1";
|
|
minio-service.url = "path:../homelab-services/minio-service";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, disko, sops-nix, quasiSecrets, impermanence, tests-service, minio-service }@inputs:
|
|
let
|
|
nodes = [
|
|
{
|
|
name = "nixos-homelab-00";
|
|
hostId = "3884D2F1";
|
|
}
|
|
];
|
|
in {
|
|
nixosConfigurations = builtins.listToAttrs (map (node: {
|
|
name = node.name;
|
|
value = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
meta = {
|
|
hostname = node.name;
|
|
hostId = node.hostId;
|
|
};
|
|
};
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./configuration.nix
|
|
./hardware-configuration.nix
|
|
./disk-config.nix
|
|
disko.nixosModules.disko
|
|
sops-nix.nixosModules.sops
|
|
quasiSecrets.nixosModules.ipAddrs
|
|
quasiSecrets.nixosModules.serviceList
|
|
impermanence.nixosModules.impermanence
|
|
tests-service.nixosModules.default
|
|
minio-service.nixosModules.default
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.sysAdmin = ./home.nix;
|
|
}
|
|
];
|
|
};
|
|
}) nodes);
|
|
};
|
|
}
|