2025-07-16 09:32:19 -07:00
|
|
|
{
|
|
|
|
|
description = "Multi-host NixOS configuration";
|
|
|
|
|
|
|
|
|
|
inputs = {
|
2025-09-09 13:01:14 +00:00
|
|
|
authentik-nix = {
|
|
|
|
|
url = "github:nix-community/authentik-nix";
|
|
|
|
|
};
|
2025-09-08 20:36:59 +00:00
|
|
|
disko = {
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
url = "github:nix-community/disko";
|
|
|
|
|
};
|
2025-07-16 09:32:19 -07:00
|
|
|
home-manager = {
|
|
|
|
|
url = "github:nix-community/home-manager/release-25.05";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
|
|
|
|
nixvim = {
|
|
|
|
|
url = "github:nix-community/nixvim/nixos-25.05";
|
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
};
|
2025-07-16 09:55:20 -07:00
|
|
|
sops-nix.url = "github:Mic92/sops-nix";
|
2025-07-16 09:32:19 -07:00
|
|
|
};
|
|
|
|
|
|
2025-09-09 13:01:14 +00:00
|
|
|
outputs = { self, authentik-nix, disko, home-manager, nixpkgs, nixvim, sops-nix, ...}:
|
2025-07-16 09:32:19 -07:00
|
|
|
let
|
|
|
|
|
configFiles = pkgs.stdenv.mkDerivation {
|
|
|
|
|
name = "config-files";
|
|
|
|
|
src = ./configs;
|
|
|
|
|
installPhase = ''
|
|
|
|
|
mkdir -p $out
|
|
|
|
|
cp -r * $out/
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
|
system = "x86_64-linux";
|
|
|
|
|
in {
|
|
|
|
|
nixosConfigurations = {
|
2025-08-15 16:35:41 +00:00
|
|
|
corp = import ./system.nix {
|
|
|
|
|
configuration = ./host/corp/configuration.nix;
|
2025-09-09 13:01:14 +00:00
|
|
|
inherit authentik-nix configFiles disko home-manager nixpkgs nixvim sops-nix system;
|
2025-08-15 00:34:21 +00:00
|
|
|
};
|
2025-08-15 16:35:41 +00:00
|
|
|
"sync.nidus.cloud" = import ./system.nix {
|
|
|
|
|
configuration = ./host/sync/configuration.nix;
|
2025-09-09 13:01:14 +00:00
|
|
|
inherit authentik-nix configFiles disko home-manager nixpkgs nixvim sops-nix system;
|
2025-07-16 09:32:19 -07:00
|
|
|
};
|
2025-07-17 19:39:38 +00:00
|
|
|
test-corp = nixpkgs.lib.nixosSystem {
|
2025-08-15 16:35:41 +00:00
|
|
|
configuration = ./host/test-corp/configuration.nix;
|
2025-09-09 13:01:14 +00:00
|
|
|
inherit authentik-nix configFiles disko home-manager nixpkgs nixvim sops-nix system;
|
2025-07-17 19:39:38 +00:00
|
|
|
};
|
2025-07-16 09:32:19 -07:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|