Highlights - No need to update flake for every machine anymore, just add a properties.nix file. - Roles are automatically generated from all machine configurations. - Roles and their secrets automatically are grouped and show up in agenix secrets.nix - Machines and their service configs may now query the properties of all machines. - Machine configuration and secrets are now competely isolated into each machine's directory. - Safety checks to ensure no mixing of luks unlocking secrets and hosts with primary ones. - SSH pubkeys no longer centrally stored but instead per machine where the private key lies for better cleanup.
16 lines
320 B
Nix
16 lines
320 B
Nix
# Allows getting machine-info outside the scope of nixos configuration
|
|
|
|
{ nixpkgs ? import <nixpkgs> { }
|
|
, assertionsModule ? <nixpkgs/nixos/modules/misc/assertions.nix>
|
|
}:
|
|
|
|
{
|
|
machines =
|
|
(nixpkgs.lib.evalModules {
|
|
modules = [
|
|
./default.nix
|
|
assertionsModule
|
|
];
|
|
}).config.machines;
|
|
}
|