From def975ffb2c1d955e30f12a92f49789ace8d8eb2 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 2 Aug 2016 14:59:31 +0200 Subject: k 3 power-action: don't create configured user --- krebs/3modules/power-action.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'krebs/3modules/power-action.nix') 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" '' -- cgit v1.2.3