diff options
author | tv <tv@krebsco.de> | 2022-11-23 18:16:48 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-11-23 19:15:49 +0100 |
commit | b065ee81dc5e153d1f16a168db82b4eb7bfb2850 (patch) | |
tree | 6d6d7f37e9dc0cadb9da9b97840d48399e6f2be5 /kartei/template/default.nix | |
parent | 5fa371dd9327f2b5cd4e97df6a6409e38fc53e85 (diff) |
kartei: add template
Diffstat (limited to 'kartei/template/default.nix')
-rw-r--r-- | kartei/template/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kartei/template/default.nix b/kartei/template/default.nix new file mode 100644 index 000000000..2acf78d38 --- /dev/null +++ b/kartei/template/default.nix @@ -0,0 +1,20 @@ +{ config, ... }: let + lib = import ../../lib; +in { + users.DUMMYUSER = { + mail = "DUMMYUSER@example.ork"; + }; + hosts.DUMMYHOST = { + owner = config.krebs.users.DUMMYUSER; + nets.retiolum = { + aliases = [ "DUMMYHOST.DUMMYUSER.r" ]; + ip6.addr = (lib.krebs.genipv6 "retiolum" "DUMMYUSER" { hostName = "DUMMYHOST"; }).address; + tinc.pubkey = '' + -----BEGIN RSA PUBLIC KEY----- + DUMMYTINCPUBKEYRSA + -----END RSA PUBLIC KEY----- + ''; + tinc.pubkey_ed25519 = "DUMMYTINCPUBKEYED25519"; + }; + }; +} |