diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-02-15 08:25:59 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-02-15 08:25:59 +0100 |
commit | aaac02f6c47f509f9371be3b844c45ef779439b1 (patch) | |
tree | 8a8679a2c9638da048c09cb46d1b366e6973784b /nixos/modules/services | |
parent | b1bfe9d3db71de1aa9524ec76b188cfe4cd7dd3e (diff) |
nixos/atd: unbreak after new security.wrappers
* convert list -> attrset * 'atd' doesn't exist, 'at' does
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/scheduling/atd.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/services/scheduling/atd.nix b/nixos/modules/services/scheduling/atd.nix index f3ada6b7496a6..0216c9771c96c 100644 --- a/nixos/modules/services/scheduling/atd.nix +++ b/nixos/modules/services/scheduling/atd.nix @@ -42,13 +42,14 @@ in config = mkIf cfg.enable { - security.wrappers = map (program: {"${program}" = { - source = "${pkgs.atd}/bin/${program}"; + security.wrappers = builtins.listToAttrs ( + map (program: { name = "${program}"; value = { + source = "${at}/bin/${program}"; owner = "atd"; group = "atd"; setuid = true; setgid = true; - };}) [ "at" "atq" "atrm" "batch" ]; + };}) [ "at" "atq" "atrm" "batch" ]); environment.systemPackages = [ at ]; |