diff --git a/modules/printing.nix b/modules/printing.nix index ddb9f53..23b6f15 100644 --- a/modules/printing.nix +++ b/modules/printing.nix @@ -13,18 +13,17 @@ openFirewall = true; }; - /* hardware.printers = { ensurePrinters = [ { - name = "Brother MFC-L3750CDW series"; + name = "Brother-MFC-L3750CDW-series"; location = "Home"; - deviceUri = "ipp://BROTHER-ETH.local.:631/ipp/print"; - model = + deviceUri = "dnssd://Brother%20MFC-L3750CDW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-b4220094c09b"; + model = "brother_mfcl3750cdw_printer_en.ppd"; } - ] - } - */ + ]; + ensureDefaultPrinter = "Brother-MFC-L3750CDW-series"; + }; environment.systemPackages = with pkgs; with config.bchmnn; lib.optionals (gui.enable) [ system-config-printer diff --git a/users/gandalf/modules/gui/i3/default.nix b/users/gandalf/modules/gui/i3/default.nix index d241d11..f1c8e2e 100644 --- a/users/gandalf/modules/gui/i3/default.nix +++ b/users/gandalf/modules/gui/i3/default.nix @@ -24,6 +24,7 @@ in { blueman # control bluetooth nextcloud-client # nextcloud client to connect to any instance plasma5Packages.kdeconnect-kde # sync phone and pc + system-config-printer # printer manager ]; xsession.windowManager.i3 = { @@ -39,6 +40,7 @@ in { { command = "${udiskie}/bin/udiskie --tray"; } { command = "${nextcloud-client}/bin/nextcloud"; } { command = "${plasma5Packages.kdeconnect-kde}/bin/kdeconnect-indicator"; } + { command = "${system-config-printer}/bin/system-config-printer-applet"; } ]; fonts = { names = [ common.font ]; diff --git a/users/gandalf/modules/gui/sway/default.nix b/users/gandalf/modules/gui/sway/default.nix index d93e6a3..490cc10 100644 --- a/users/gandalf/modules/gui/sway/default.nix +++ b/users/gandalf/modules/gui/sway/default.nix @@ -29,6 +29,7 @@ in kanshi # display manager nextcloud-client # self hosted cloud client plasma5Packages.kdeconnect-kde # sync phone and pc + system-config-printer # printer manager ]; programs.swaylock = { @@ -85,6 +86,7 @@ in { command = "${swaynotificationcenter}/bin/swaync"; } { command = "${nextcloud-client}/bin/nextcloud"; } { command = "${plasma5Packages.kdeconnect-kde}/bin/kdeconnect-indicator"; } + { command = "${system-config-printer}/bin/system-config-printer-applet"; } ]; input = { "2:7:SynPS/2_Synaptics_TouchPad" = {