summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorFlorian Jacob <projects+git@florianjacob.de>2019-02-10 12:48:32 +0100
committerFlorian Jacob <projects+git@florianjacob.de>2019-02-14 20:43:26 +0100
commit33b3272692868d9a746f4f703c1d917fb7b9adb6 (patch)
tree3e9427b6e0fad7bbb7adde922ecdebc47474d94e /nixos/modules
parent482c0440acba8ba5652f32f26beab168e362c212 (diff)
downloadnixpkgs-33b3272692868d9a746f4f703c1d917fb7b9adb6.tar
nixpkgs-33b3272692868d9a746f4f703c1d917fb7b9adb6.tar.gz
nixpkgs-33b3272692868d9a746f4f703c1d917fb7b9adb6.tar.bz2
nixpkgs-33b3272692868d9a746f4f703c1d917fb7b9adb6.tar.lz
nixpkgs-33b3272692868d9a746f4f703c1d917fb7b9adb6.tar.xz
nixpkgs-33b3272692868d9a746f4f703c1d917fb7b9adb6.tar.zst
nixpkgs-33b3272692868d9a746f4f703c1d917fb7b9adb6.zip
nixos/cups: Fix Unable to encrypt connection:
Unable to create server credentials
by creating /var/lib/cups/ssl directory.
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/printing/cupsd.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix
index 1031d6f3d7e..3a43ebbb889 100644
--- a/nixos/modules/services/printing/cupsd.nix
+++ b/nixos/modules/services/printing/cupsd.nix
@@ -316,6 +316,10 @@ in
             mkdir -m 0755 -p ${cfg.tempDir}
 
             mkdir -m 0755 -p /var/lib/cups
+            # While cups will automatically create self-signed certificates if accessed via TLS,
+            # this directory to store the certificates needs to be created manually.
+            mkdir -m 0700 -p /var/lib/cups/ssl
+
             # Backwards compatibility
             if [ ! -L /etc/cups ]; then
               mv /etc/cups/* /var/lib/cups