diff options
author | lassulus <lass@aidsballs.de> | 2016-08-02 14:59:31 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-08-02 14:59:31 +0200 |
commit | def975ffb2c1d955e30f12a92f49789ace8d8eb2 (patch) | |
tree | 63aa08482a70ee8419816685af0aabf1d171fc87 /krebs | |
parent | 9ef2790f099115a4759ae7ae45945a4d85ad097d (diff) |
k 3 power-action: don't create configured user
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/3modules/power-action.nix | 11 |
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" '' |