diff options
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 | } |
