diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-02-20 22:39:19 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-02-20 22:39:19 +0100 |
commit | 2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f (patch) | |
tree | 2c09a1bedae80ea2535ff034b6c5a4d64899f34b /custom | |
parent | 74910038136583c57eb7bda7ae00485f226f76e1 (diff) | |
download | nixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.tar nixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.tar.gz nixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.tar.bz2 nixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.tar.xz nixos-2d7616fb3070fc5aeb2b3f5cc7082dcf21714a6f.zip |
Fix setuid-wrappers path
Diffstat (limited to 'custom')
-rw-r--r-- | custom/tinc/def.nix | 2 | ||||
-rw-r--r-- | custom/uucp.nix | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix index 58c5237c..a3bb00a0 100644 --- a/custom/tinc/def.nix +++ b/custom/tinc/def.nix | |||
@@ -18,7 +18,7 @@ in | |||
18 | 18 | ||
19 | networks = mkOption { | 19 | networks = mkOption { |
20 | default = { }; | 20 | default = { }; |
21 | type = types.loaOf types.optionSet; | 21 | type = types.loaOf types.submodule; |
22 | description = '' | 22 | description = '' |
23 | Defines the tinc networks which will be started. | 23 | Defines the tinc networks which will be started. |
24 | Each network invokes a different daemon. | 24 | Each network invokes a different daemon. |
diff --git a/custom/uucp.nix b/custom/uucp.nix index c69d15c5..0b4b1306 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix | |||
@@ -237,7 +237,7 @@ in { | |||
237 | choices as appropriate. */ | 237 | choices as appropriate. */ |
238 | #if 1 | 238 | #if 1 |
239 | -#define MAIL_PROGRAM "/usr/lib/sendmail -t" | 239 | -#define MAIL_PROGRAM "/usr/lib/sendmail -t" |
240 | +#define MAIL_PROGRAM "/var/setuid-wrappers/sendmail -t" | 240 | +#define MAIL_PROGRAM "${config.security.wrapperDir}/sendmail -t" |
241 | /* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */ | 241 | /* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */ |
242 | #define MAIL_PROGRAM_TO_BODY 1 | 242 | #define MAIL_PROGRAM_TO_BODY 1 |
243 | #define MAIL_PROGRAM_SUBJECT_BODY 1 | 243 | #define MAIL_PROGRAM_SUBJECT_BODY 1 |
@@ -256,7 +256,7 @@ in { | |||
256 | *) from="$from@$relay";; | 256 | *) from="$from@$relay";; |
257 | esac | 257 | esac |
258 | 258 | ||
259 | exec /var/setuid-wrappers/sendmail -G -i -f "$from" -- "$@" | 259 | exec ${config.security.wrapperDir}/sendmail -G -i -f "$from" -- "$@" |
260 | ''; | 260 | ''; |
261 | }; | 261 | }; |
262 | 262 | ||
@@ -264,6 +264,6 @@ in { | |||
264 | uucp | 264 | uucp |
265 | ]; | 265 | ]; |
266 | 266 | ||
267 | services.cron.systemCronJobs = (map (name: "${config.services.uucp.interval} /var/setuid-wrappers/uucico -D -S ${name}") (if (config.services.uucp.interval != null) then config.services.uucp.remoteNodes else [])); | 267 | services.cron.systemCronJobs = (map (name: "${config.services.uucp.interval} ${config.security.wrapperDir}/uucico -D -S ${name}") (if (config.services.uucp.interval != null) then config.services.uucp.remoteNodes else [])); |
268 | }; | 268 | }; |
269 | } | 269 | } |