2023-06-10 12:50:53 +02:00
|
|
|
{ config, lib, ... }: let
|
|
|
|
slib = import ../../lib/pure.nix { inherit lib; };
|
2018-12-11 21:41:11 +01:00
|
|
|
|
2023-06-10 12:50:53 +02:00
|
|
|
r6 = ip: (slib.krebs.genipv6 "retiolum" "lass" ip).address;
|
|
|
|
w6 = ip: (slib.krebs.genipv6 "wiregrill" "lass" ip).address;
|
2022-12-26 23:45:25 +01:00
|
|
|
hostFiles =
|
|
|
|
builtins.map (lib.removeSuffix ".nix") (
|
|
|
|
builtins.filter
|
|
|
|
(x: lib.hasSuffix ".nix" x && x != "default.nix")
|
|
|
|
(lib.attrNames (builtins.readDir ./.))
|
|
|
|
);
|
2015-10-01 18:56:41 +02:00
|
|
|
|
2018-12-11 21:41:11 +01:00
|
|
|
in {
|
2018-01-16 00:00:58 +01:00
|
|
|
dns.providers = {
|
|
|
|
"lassul.us" = "zones";
|
|
|
|
};
|
2023-06-10 12:50:53 +02:00
|
|
|
hosts = lib.mapAttrs (_: lib.recursiveUpdate {
|
2021-11-23 11:43:25 +01:00
|
|
|
owner = config.krebs.users.lass;
|
2022-11-15 15:48:15 +01:00
|
|
|
consul = true;
|
2023-09-07 12:26:31 +02:00
|
|
|
ci = false;
|
2021-11-23 11:43:25 +01:00
|
|
|
monitoring = true;
|
2022-12-26 23:45:25 +01:00
|
|
|
}) (
|
2023-06-10 12:50:53 +02:00
|
|
|
lib.genAttrs hostFiles (host: import (./. + "/${host}.nix") {
|
|
|
|
inherit config lib r6 w6;
|
|
|
|
inherit (slib) krebs;
|
|
|
|
})
|
2022-12-26 23:45:25 +01:00
|
|
|
);
|
2023-10-05 21:25:19 +02:00
|
|
|
users = {
|
|
|
|
lass = {
|
2023-07-06 20:26:25 +02:00
|
|
|
mail = "lass@green.r";
|
2019-10-14 13:11:31 +02:00
|
|
|
pubkey = builtins.readFile ./ssh/yubikey.rsa;
|
|
|
|
pgp.pubkeys.default = builtins.readFile ./pgp/yubikey.pgp;
|
|
|
|
};
|
2015-10-01 18:56:41 +02:00
|
|
|
};
|
|
|
|
}
|