summaryrefslogtreecommitdiffstats
path: root/kartei/template/default.nix
blob: 2d595f9b403cf478970c6c83c1b57a948bbcfcbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, lib, ... }: let
  slib = import ../../lib/pure.nix { inherit lib; };
in {
  users.DUMMYUSER = {
    mail = "DUMMYUSER@example.ork";
  };
  hosts.DUMMYHOST = {
    owner = config.krebs.users.DUMMYUSER;
    nets.retiolum = {
      aliases = [ "DUMMYHOST.DUMMYUSER.r" ];
      ip6.addr = (slib.krebs.genipv6 "retiolum" "DUMMYUSER" { hostName = "DUMMYHOST"; }).address;
      tinc.pubkey = ''
        -----BEGIN RSA PUBLIC KEY-----
        DUMMYTINCPUBKEYRSA
        -----END RSA PUBLIC KEY-----
      '';
      tinc.pubkey_ed25519 = "DUMMYTINCPUBKEYED25519";
    };
  };
}