diff options
author | tv <tv@krebsco.de> | 2016-02-21 07:18:13 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-21 07:18:13 +0100 |
commit | e3ddf995e92985ee14dab5735ac55045c166aaaf (patch) | |
tree | f78776a57ce561e88950228cb2110d7372d11d94 /krebs/4lib/types.nix | |
parent | 05be525be6d0896b155da7305b2cee950fb3530e (diff) |
krebs types.secret-file: owner-name -> owner :: user
Diffstat (limited to 'krebs/4lib/types.nix')
-rw-r--r-- | krebs/4lib/types.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/krebs/4lib/types.nix b/krebs/4lib/types.nix index 422627296..7792b31d5 100644 --- a/krebs/4lib/types.nix +++ b/krebs/4lib/types.nix @@ -147,8 +147,14 @@ types // rec { options = { path = mkOption { type = str; }; mode = mkOption { type = str; default = "0400"; }; - owner-name = mkOption { type = str; default = "root"; }; - group-name = mkOption { type = str; default = "root"; }; + owner = mkOption { + type = user; + default = config.krebs.users.root; + }; + group-name = mkOption { + type = str; + default = "root"; + }; source-path = mkOption { type = str; default = toString <secrets> + "/${config._module.args.name}"; |