Files
tuxcord.nix/nixos/default.nix
T
javalsai e939c28c9c nixos/security: add acme through dns challenge
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.
2026-05-03 21:11:07 -04:00

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";
};
}