summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-21 07:18:13 +0100
committertv <tv@krebsco.de>2016-02-21 07:18:13 +0100
commite3ddf995e92985ee14dab5735ac55045c166aaaf (patch)
treef78776a57ce561e88950228cb2110d7372d11d94 /krebs/3modules
parent05be525be6d0896b155da7305b2cee950fb3530e (diff)
krebs types.secret-file: owner-name -> owner :: user
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/default.nix7
-rw-r--r--krebs/3modules/secret.nix2
2 files changed, 8 insertions, 1 deletions
diff --git a/krebs/3modules/default.nix b/krebs/3modules/default.nix
index df1c7db63..7a343d333 100644
--- a/krebs/3modules/default.nix
+++ b/krebs/3modules/default.nix
@@ -104,6 +104,13 @@ let
retiolum = "hosts";
};
+ krebs.users.root = {
+ home = "/root";
+ name = "root";
+ pubkey = config.krebs.build.host.ssh.pubkey;
+ uid = 0;
+ };
+
networking.extraHosts = concatStringsSep "\n" (flatten (
mapAttrsToList (hostname: host:
mapAttrsToList (netname: net:
diff --git a/krebs/3modules/secret.nix b/krebs/3modules/secret.nix
index 46802a661..579f375f3 100644
--- a/krebs/3modules/secret.nix
+++ b/krebs/3modules/secret.nix
@@ -25,7 +25,7 @@ in {
--compare \
--verbose \
--mode=${shell.escape file.mode} \
- --owner=${shell.escape file.owner-name} \
+ --owner=${shell.escape file.owner.name} \
--group=${shell.escape file.group-name} \
${shell.escape file.source-path} \
${shell.escape file.path} \