summaryrefslogtreecommitdiffstats
path: root/krebs/4lib
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/4lib
parent05be525be6d0896b155da7305b2cee950fb3530e (diff)
krebs types.secret-file: owner-name -> owner :: user
Diffstat (limited to 'krebs/4lib')
-rw-r--r--krebs/4lib/types.nix10
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}";