mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-25 18:46:32 +03:00
nixos/cupsd: include /run/cups/cups.sock in ListenStreams
This socket should always be created by systemd.
This commit is contained in:
parent
35e633bde5
commit
28040465be
1 changed files with 2 additions and 1 deletions
|
@ -304,7 +304,8 @@ in
|
||||||
|
|
||||||
systemd.sockets.cups = mkIf cfg.startWhenNeeded {
|
systemd.sockets.cups = mkIf cfg.startWhenNeeded {
|
||||||
wantedBy = [ "sockets.target" ];
|
wantedBy = [ "sockets.target" ];
|
||||||
listenStreams = map (x: replaceStrings ["localhost"] ["127.0.0.1"] (removePrefix "*:" x)) cfg.listenAddresses;
|
listenStreams = [ "/run/cups/cups.sock" ]
|
||||||
|
++ map (x: replaceStrings ["localhost"] ["127.0.0.1"] (removePrefix "*:" x)) cfg.listenAddresses;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.cups =
|
systemd.services.cups =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue