Retire zion as printing and scan server
This commit is contained in:
parent
b089c72df1
commit
fbc91f7d01
|
@ -8,7 +8,6 @@
|
||||||
|
|
||||||
- ZFS pool configuration: hardware-configuration.nix
|
- ZFS pool configuration: hardware-configuration.nix
|
||||||
- Network configuration: networking.nix
|
- Network configuration: networking.nix
|
||||||
- Printing and scanner server: printing.nix
|
|
||||||
- Synchronization and backup services: datasync.nix
|
- Synchronization and backup services: datasync.nix
|
||||||
- Web services and reverse proxy: webstack.nix
|
- Web services and reverse proxy: webstack.nix
|
||||||
- Development tools: devops.nix
|
- Development tools: devops.nix
|
||||||
|
|
|
@ -105,7 +105,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./modules/hardware-configuration.nix
|
./modules/hardware-configuration.nix
|
||||||
./modules/networking.nix
|
./modules/networking.nix
|
||||||
./modules/printing.nix
|
|
||||||
./modules/datasync.nix
|
./modules/datasync.nix
|
||||||
./modules/webstack.nix
|
./modules/webstack.nix
|
||||||
./modules/devops.nix
|
./modules/devops.nix
|
||||||
|
|
|
@ -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" ]; };
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue