From fbc91f7d0149a7141cc5bc3b032decd2ecd67e87 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 29 Sep 2020 00:33:45 +0200 Subject: [PATCH] Retire zion as printing and scan server --- README.org | 1 - configuration.nix | 1 - modules/printing.nix | 30 ------------------------------ 3 files changed, 32 deletions(-) delete mode 100644 modules/printing.nix diff --git a/README.org b/README.org index 7b6e6a7..184c7de 100644 --- a/README.org +++ b/README.org @@ -8,7 +8,6 @@ - ZFS pool configuration: hardware-configuration.nix - Network configuration: networking.nix - - Printing and scanner server: printing.nix - Synchronization and backup services: datasync.nix - Web services and reverse proxy: webstack.nix - Development tools: devops.nix diff --git a/configuration.nix b/configuration.nix index db803d7..a373958 100644 --- a/configuration.nix +++ b/configuration.nix @@ -105,7 +105,6 @@ imports = [ ./modules/hardware-configuration.nix ./modules/networking.nix - ./modules/printing.nix ./modules/datasync.nix ./modules/webstack.nix ./modules/devops.nix diff --git a/modules/printing.nix b/modules/printing.nix deleted file mode 100644 index 8cd5c5f..0000000 --- a/modules/printing.nix +++ /dev/null @@ -1,30 +0,0 @@ -# CUPS and SANE configuration -{ config, pkgs, lib, ... }: { - # Enable CUPS with Zeroconf - services.printing = { - enable = true; - drivers = with pkgs; [ hplip ]; - browsing = true; - listenAddresses = [ "0.0.0.0:631" ]; - defaultShared = true; - }; - - # Enable SANE - hardware.sane = { - enable = true; - extraBackends = with pkgs; [ hplip ]; - }; - - # Allow scanning over LAN and VPN - services.saned = { - enable = true; - extraConfig = '' - 192.168.1.0/24 - 10.8.0.2/32 - ''; - }; - - # Give SANE access to the printer - users.users.scanner = { extraGroups = [ "lp" ]; }; - -}