0fd9693941
few side refactors of this: - no more `dns.domain`, it all must rely on `fqdn`, prevents inconsistencies. - also added an specific host `tuxcord-acmetest` that uses the key zone for `nix.tuxcord.net` to test certificate pulling.
39 lines
727 B
Nix
39 lines
727 B
Nix
{
|
|
inputs,
|
|
self,
|
|
withSystem,
|
|
...
|
|
}:
|
|
let
|
|
mkSystem =
|
|
name: system:
|
|
withSystem system (
|
|
{ inputs', self', ... }:
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = {
|
|
inherit
|
|
inputs
|
|
inputs'
|
|
self
|
|
self'
|
|
;
|
|
};
|
|
|
|
modules = [
|
|
"${self}/nixos/common.nix"
|
|
"${self}/nixos/hosts/${name}"
|
|
{ host = { inherit name; }; }
|
|
];
|
|
}
|
|
);
|
|
in
|
|
{
|
|
flake.nixosConfigurations = {
|
|
tuxcord-ca = mkSystem "tuxcord-ca" "x86_64-linux";
|
|
|
|
tuxcord-test = mkSystem "tuxcord-test" "x86_64-linux";
|
|
tuxcord-acmetest = mkSystem "tuxcord-acmetest" "x86_64-linux";
|
|
};
|
|
}
|