kartei janik: make pure
This commit is contained in:
parent
73b17ef250
commit
aa0292417f
@ -1,12 +1,12 @@
|
|||||||
with import ../../lib;
|
{ config, lib, ... }: let
|
||||||
{ config, ... }: let
|
slib = import ../../lib/pure.nix { inherit lib; };
|
||||||
hostDefaults = hostName: host: flip recursiveUpdate host ({
|
hostDefaults = hostName: host: lib.flip lib.recursiveUpdate host ({
|
||||||
ci = false;
|
ci = false;
|
||||||
external = true;
|
external = true;
|
||||||
monitoring = false;
|
monitoring = false;
|
||||||
} // optionalAttrs (host.nets?retiolum) {
|
} // lib.optionalAttrs (host.nets?retiolum) {
|
||||||
nets.retiolum.ip6.addr =
|
nets.retiolum.ip6.addr =
|
||||||
(krebs.genipv6 "retiolum" "external" { inherit hostName; }).address;
|
(slib.krebs.genipv6 "retiolum" "external" { inherit hostName; }).address;
|
||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
users.janik = {
|
users.janik = {
|
||||||
@ -16,7 +16,7 @@ in {
|
|||||||
owner = config.krebs.users.janik;
|
owner = config.krebs.users.janik;
|
||||||
nets.retiolum = {
|
nets.retiolum = {
|
||||||
aliases = [ "hertz.janik.r" ];
|
aliases = [ "hertz.janik.r" ];
|
||||||
ip6.addr = (lib.krebs.genipv6 "retiolum" "janik" { hostName = "hertz"; }).address;
|
ip6.addr = (slib.krebs.genipv6 "retiolum" "janik" { hostName = "hertz"; }).address;
|
||||||
tinc.pubkey = ''
|
tinc.pubkey = ''
|
||||||
-----BEGIN RSA PUBLIC KEY-----
|
-----BEGIN RSA PUBLIC KEY-----
|
||||||
MIICCgKCAgEA0mqxrdVU9wFhNZYGWEknJpKV4yIodNlaCIKDPVhU5wmlzh2szKUS
|
MIICCgKCAgEA0mqxrdVU9wFhNZYGWEknJpKV4yIodNlaCIKDPVhU5wmlzh2szKUS
|
||||||
|
Loading…
Reference in New Issue
Block a user