Getting rid of the var indirection and using a bin path instead
This commit is contained in:
@@ -42,13 +42,13 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
security.wrappers.setuid = map (program: "${program}" = {
|
||||
security.wrappers = map (program: {"${program}" = {
|
||||
source = "${pkgs.atd}/bin/${program}";
|
||||
owner = "atd";
|
||||
group = "atd";
|
||||
setuid = true;
|
||||
setgid = true;
|
||||
}) [ "at" "atq" "atrm" "batch" ];
|
||||
};}) [ "at" "atq" "atrm" "batch" ];
|
||||
|
||||
environment.systemPackages = [ at ];
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ let
|
||||
cronNixosPkg = pkgs.cron.override {
|
||||
# The mail.nix nixos module, if there is any local mail system enabled,
|
||||
# should have sendmail in this path.
|
||||
sendmailPath = "/run/wrappers/sendmail";
|
||||
sendmailPath = "/run/wrappers/bin/sendmail";
|
||||
};
|
||||
|
||||
allFiles =
|
||||
|
||||
@@ -96,7 +96,7 @@ in
|
||||
fcronallow = /etc/fcron.allow
|
||||
fcrondeny = /etc/fcron.deny
|
||||
shell = /bin/sh
|
||||
sendmail = /run/wrappers/sendmail
|
||||
sendmail = /run/wrappers/bin/sendmail
|
||||
editor = /run/current-system/sw/bin/vi
|
||||
'';
|
||||
target = "fcron.conf";
|
||||
|
||||
Reference in New Issue
Block a user