summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
Diffstat (limited to 'krebs')
-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" ''