From c025d9c51a9fec2fd83cd396df8d348dbcde5a40 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 20 May 2023 07:47:28 +0200 Subject: Refactor(system/services/printing): Split printing and scanning --- system/services/default.nix | 13 +++++++------ system/services/printing/default.nix | 4 ---- system/services/scanning/default.nix | 9 +++++++++ 3 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 system/services/scanning/default.nix diff --git a/system/services/default.nix b/system/services/default.nix index 514ff604..d7505293 100644 --- a/system/services/default.nix +++ b/system/services/default.nix @@ -1,13 +1,14 @@ -{config, ...}: { +{...}: { imports = [ - ./printing + ./backup + ./dconf ./nix + ./openssh + ./printing + ./scanning ./snapper ./steam - ./dconf - ./openssh - ./backup - ./xdg ./swaylock + ./xdg ]; } diff --git a/system/services/printing/default.nix b/system/services/printing/default.nix index d5b45658..8cfbdc72 100644 --- a/system/services/printing/default.nix +++ b/system/services/printing/default.nix @@ -12,10 +12,6 @@ drivers = []; }; hardware = { - sane = { - enable = true; - extraBackends = [pkgs.sane-airscan]; - }; printers = { ensurePrinters = [ { diff --git a/system/services/scanning/default.nix b/system/services/scanning/default.nix new file mode 100644 index 00000000..b132e915 --- /dev/null +++ b/system/services/scanning/default.nix @@ -0,0 +1,9 @@ +# vim: ts=2 +{pkgs, ...}: { + hardware = { + sane = { + enable = true; + extraBackends = [pkgs.sane-airscan]; + }; + }; +} -- cgit 1.4.1