From 19310060e0c70288c6871f774e67e61f75d4dfcf Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 3 May 2020 14:15:20 +0800 Subject: [PATCH] nixops: prevent cups from creating broken and conflicting printer entries https://askubuntu.com/questions/345083/how-do-i-disable-automatic-remote-printer-installation --- nixops/desktop.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixops/desktop.nix b/nixops/desktop.nix index 395d9ed..6b021cb 100644 --- a/nixops/desktop.nix +++ b/nixops/desktop.nix @@ -38,6 +38,16 @@ in # Enable CUPS to print documents. services.printing = { enable = true; + extraConf = + '' + Browsing Off + BrowseLocalProtocols none + ''; + browsedConf = + '' + BrowseRemoteProtocols none + BrowseProtocols none + ''; }; services.avahi = { enable = true;