From b065ee81dc5e153d1f16a168db82b4eb7bfb2850 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 23 Nov 2022 18:16:48 +0100 Subject: kartei: add template --- kartei/template/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 kartei/template/default.nix (limited to 'kartei/template') 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"; + }; + }; +} -- cgit v1.2.3