diff options
author | Soispha <soispha@vhack.eu> | 2023-05-20 07:47:28 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-20 08:02:02 +0200 |
commit | c025d9c51a9fec2fd83cd396df8d348dbcde5a40 (patch) | |
tree | ff14117d8c06c76ea808dfa8e9a921ec4ee6a5ff | |
parent | Fix(system): Add configs for networkmanager only if it's enabled (diff) | |
download | nixos-config-c025d9c51a9fec2fd83cd396df8d348dbcde5a40.tar.gz nixos-config-c025d9c51a9fec2fd83cd396df8d348dbcde5a40.zip |
Refactor(system/services/printing): Split printing and scanning
Diffstat (limited to '')
-rw-r--r-- | system/services/default.nix | 13 | ||||
-rw-r--r-- | system/services/printing/default.nix | 4 | ||||
-rw-r--r-- | system/services/scanning/default.nix | 9 |
3 files changed, 16 insertions, 10 deletions
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]; + }; + }; +} |