summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-08-02 14:59:31 +0200
committerlassulus <lass@aidsballs.de>2016-08-02 14:59:31 +0200
commitdef975ffb2c1d955e30f12a92f49789ace8d8eb2 (patch)
tree63aa08482a70ee8419816685af0aabf1d171fc87 /krebs/3modules
parent9ef2790f099115a4759ae7ae45945a4d85ad097d (diff)
k 3 power-action: don't create configured user
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/power-action.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/krebs/3modules/power-action.nix b/krebs/3modules/power-action.nix
index 4c2533eb7..7227f4a9a 100644
--- a/krebs/3modules/power-action.nix
+++ b/krebs/3modules/power-action.nix
@@ -17,10 +17,8 @@ let
default = "BAT0";
};
user = mkOption {
- type = types.user;
- default = {
- name = "power-action";
- };
+ type = types.string;
+ default = "power-action";
};
startAt = mkOption {
type = types.str;
@@ -57,13 +55,10 @@ let
systemd.services.power-action = {
serviceConfig = rec {
ExecStart = startScript;
- User = cfg.user.name;
+ User = cfg.user;
};
startAt = cfg.startAt;
};
- users.users.${cfg.user.name} = {
- inherit (cfg.user) name uid;
- };
};
startScript = pkgs.writeDash "power-action" ''