summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-01-04 19:47:12 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-01-04 19:47:12 +0100
commit7da07a5e1ff80d603163e660cfd6a4057e54f864 (patch)
tree31406073512ca685fa8d2fd5995f9530710d3cc2 /modules
parent31bd460c5e4c41f9d383d867649d70cf7376919f (diff)
downloadnixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar
nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar.gz
nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar.bz2
nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.tar.xz
nixos-7da07a5e1ff80d603163e660cfd6a4057e54f864.zip
...
Diffstat (limited to 'modules')
-rw-r--r--modules/uucp.nix27
1 files changed, 1 insertions, 26 deletions
diff --git a/modules/uucp.nix b/modules/uucp.nix
index abca2acb..10f7297b 100644
--- a/modules/uucp.nix
+++ b/modules/uucp.nix
@@ -314,32 +314,7 @@ in {
314 in listToAttrs (map wrapper ["uucico" "cu" "uucp" "uuname" "uustat" "uux" "uuxqt"]); 314 in listToAttrs (map wrapper ["uucico" "cu" "uucp" "uuname" "uustat" "uux" "uuxqt"]);
315 315
316 nixpkgs.overlays = [(self: super: { 316 nixpkgs.overlays = [(self: super: {
317 uucp = super.lib.overrideDerivation super.uucp (oldAttrs: { 317 rmail = super.writeShellScriptBin "rmail" ''
318 configureFlags = "--with-newconfigdir=/etc/uucp";
319 patches = [
320 (super.writeText "mailprogram" ''
321 policy.h | 2 +-
322 1 file changed, 1 insertion(+), 1 deletion(-)
323
324 diff --git a/policy.h b/policy.h
325 index 5afe34b..8e92c8b 100644
326 --- a/policy.h
327 +++ b/policy.h
328 @@ -240,7 +240,7 @@
329 the sendmail choice below. Otherwise, select one of the other
330 choices as appropriate. */
331 #if 1
332 -#define MAIL_PROGRAM "/usr/lib/sendmail -t"
333 +#define MAIL_PROGRAM "${config.security.wrapperDir}/sendmail -t"
334 /* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */
335 #define MAIL_PROGRAM_TO_BODY 1
336 #define MAIL_PROGRAM_SUBJECT_BODY 1
337 '')
338 ];
339 });
340 rmail = super.writeScriptBin "rmail" ''
341 #!${super.stdenv.shell}
342
343 # Dummy UUCP rmail command for postfix/qmail systems 318 # Dummy UUCP rmail command for postfix/qmail systems
344 319
345 IFS=" " read junk from junk junk junk junk junk junk junk relay 320 IFS=" " read junk from junk junk junk junk junk junk junk relay