diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2022-12-07 15:31:09 +0100 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2022-12-07 15:57:44 +0100 |
commit | 28034190def8d40c7cce31fb98960072a84a9a1a (patch) | |
tree | ca7d2f3562808eee2190202a58cffc980a2b8434 /nixos/modules/services/printing | |
parent | 43cb1eb2f9b02356f130637dabcdc7fe10ee20fe (diff) | |
download | nixlib-28034190def8d40c7cce31fb98960072a84a9a1a.tar nixlib-28034190def8d40c7cce31fb98960072a84a9a1a.tar.gz nixlib-28034190def8d40c7cce31fb98960072a84a9a1a.tar.bz2 nixlib-28034190def8d40c7cce31fb98960072a84a9a1a.tar.lz nixlib-28034190def8d40c7cce31fb98960072a84a9a1a.tar.xz nixlib-28034190def8d40c7cce31fb98960072a84a9a1a.tar.zst nixlib-28034190def8d40c7cce31fb98960072a84a9a1a.zip |
nixos/cupsd: fix /var/run/ warning in cups.socket
Silence the systemd warning ListenStream= references a path below legacy directory /var/run/, updating /var/run/cups/cups.sock → /run/cups/cups.sock; please update the unit file accordingly by resetting the value coming from the upstream unit.
Diffstat (limited to 'nixos/modules/services/printing')
-rw-r--r-- | nixos/modules/services/printing/cupsd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix index 009f0fb030f7..9ac89e057620 100644 --- a/nixos/modules/services/printing/cupsd.nix +++ b/nixos/modules/services/printing/cupsd.nix @@ -341,7 +341,7 @@ in systemd.sockets.cups = mkIf cfg.startWhenNeeded { wantedBy = [ "sockets.target" ]; - listenStreams = [ "/run/cups/cups.sock" ] + listenStreams = [ "" "/run/cups/cups.sock" ] ++ map (x: replaceStrings ["localhost"] ["127.0.0.1"] (removePrefix "*:" x)) cfg.listenAddresses; }; |