From 92d27c002072af35d1a32c0b321f5bd53ce16379 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 14 May 2020 03:04:30 +0200 Subject: [PATCH] Enable network printing and scanning --- configuration.nix | 3 ++- modules/printing.nix | 15 +++++++++++++++ modules/software.nix | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 modules/printing.nix diff --git a/configuration.nix b/configuration.nix index 29c6645..7ab0471 100644 --- a/configuration.nix +++ b/configuration.nix @@ -75,7 +75,7 @@ users.users.coolneng = { isNormalUser = true; home = "/home/coolneng"; - extraGroups = [ "wheel" "video" "audio" "libvirtd" ]; + extraGroups = [ "wheel" "video" "audio" "libvirtd" "lp" ]; shell = pkgs.fish; }; @@ -95,6 +95,7 @@ ./modules/datasync.nix ./modules/audio.nix ./modules/development.nix + ./modules/printing.nix ./modules/hardware-configuration.nix ]; diff --git a/modules/printing.nix b/modules/printing.nix new file mode 100644 index 0000000..3db0ae5 --- /dev/null +++ b/modules/printing.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: + +{ + # Enable CUPS + services.printing.enable = true; + + # Enable SANE + hardware.sane = { + enable = true; + netConf = '' + 192.168.1.2 + 10.8.0.1 + ''; + }; +} diff --git a/modules/software.nix b/modules/software.nix index 6e7c8d3..41b5000 100644 --- a/modules/software.nix +++ b/modules/software.nix @@ -39,10 +39,12 @@ # Audio mopidy ncmpcpp + mpc_cli # Productivity fff zathura libreoffice + gnome3.simple-scan # Propietary skypeforlinux # Mail stack