From ba08007b414a9daba38900adedb4b8b3aa979245 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Tue, 21 Nov 2023 11:21:51 +0100 Subject: [PATCH] print setup --- machines/telecom/default.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/machines/telecom/default.nix b/machines/telecom/default.nix index eafac48..0d173be 100644 --- a/machines/telecom/default.nix +++ b/machines/telecom/default.nix @@ -137,7 +137,25 @@ texlive.combined.scheme-full ]; - services.printing.enable = true; + services.printing = { + enable = true; + extraConf = '' + JobPrivateAccess all + JobPrivateValues none + ''; + clientConf = '' + ServerName localhost + Encryption Required + User jmalka + ''; + + }; + + environment.variables = + { + CUPS_USER = "jmalka"; + }; + services.avahi.enable = true; services.avahi.nssmdns = true; # for a WiFi printer