diff options
author | tv <tv@krebsco.de> | 2015-07-24 21:35:36 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-07-24 21:35:36 +0200 |
commit | cd16cd191385bfaf559b49c17668a2deeac4c2be (patch) | |
tree | 27debddbc2b748f3c1a1ca03e66a43b23ee0e20e /3modules/krebs/default.nix | |
parent | 314f7919a93a5dbe55415453bff3aceb6e15cdf7 (diff) |
krebs.users: populate if enable, not via default
Diffstat (limited to '3modules/krebs/default.nix')
-rw-r--r-- | 3modules/krebs/default.nix | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/3modules/krebs/default.nix b/3modules/krebs/default.nix index 979cc35..9aec879 100644 --- a/3modules/krebs/default.nix +++ b/3modules/krebs/default.nix @@ -14,10 +14,12 @@ let ]; options.krebs = api; config = mkIf cfg.enable (mkMerge [ - imp { krebs.hosts = lass-hosts; } { krebs.hosts = makefu-hosts; } { krebs.hosts = tv-hosts; } + { krebs.users = lass-users; } + { krebs.users = makefu-users; } + { krebs.users = tv-users; } ]); }; @@ -33,28 +35,24 @@ let }; }; - imp = { - krebs.users = addNames { - lass = { - pubkey = readFile ../../Zpubkeys/lass.ssh.pub; - }; - makefu = { - pubkey = readFile ../../Zpubkeys/makefu.ssh.pub; - }; - tv = { - pubkey = readFile ../../Zpubkeys/tv_wu.ssh.pub; - }; - uriel = { - pubkey = readFile ../../Zpubkeys/uriel.ssh.pub; - }; - }; - }; - lass-hosts = addNames { }; + lass-users = addNames { + lass = { + pubkey = readFile ../../Zpubkeys/lass.ssh.pub; + }; + uriel = { + pubkey = readFile ../../Zpubkeys/uriel.ssh.pub; + }; + }; makefu-hosts = addNames { }; + makefu-users = addNames { + makefu = { + pubkey = readFile ../../Zpubkeys/makefu.ssh.pub; + }; + }; tv-hosts = addNames { cd = { @@ -209,6 +207,11 @@ let secure = true; }; }; + tv-users = addNames { + tv = { + pubkey = readFile ../../Zpubkeys/tv_wu.ssh.pub; + }; + }; in out |