diff --git a/modules/desktop/printing/default.nix b/modules/desktop/printing/default.nix index 42c427c1..5f08b2c3 100644 --- a/modules/desktop/printing/default.nix +++ b/modules/desktop/printing/default.nix @@ -1,24 +1,13 @@ -{ - options, - config, - lib, - pkgs, - ... -}: -let - cfg = config.modules.desktop.printing; +{ options, config, lib, pkgs, ... }: +let cfg = config.modules.desktop.printing; in { - options.modules.desktop.printing = { - enable = lib.mkEnableOption false; - }; + options.modules.desktop.printing = { enable = lib.mkEnableOption false; }; config = lib.mkIf cfg.enable { # enable printing itself services.printing = { enable = true; - drivers = with pkgs; [ - epson-escpr - ]; + drivers = with pkgs; [ epson-escpr ]; }; # autodiscovery of printers @@ -28,5 +17,7 @@ in { openFirewall = true; }; + users.users.sako.packages = with pkgs; [ simple-scan ]; + }; }