From dcdc9be96cf05b5fc49313a7f58c04754860f9f7 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 4 Oct 2023 14:43:06 +0200 Subject: [PATCH] feat: printing --- hosts/desktopnix/default.nix | 1 + hosts/patricknix/default.nix | 1 + modules/optional/printing.nix | 6 ++++++ users/common/graphical/sway3.nix | 8 ++++---- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 modules/optional/printing.nix diff --git a/hosts/desktopnix/default.nix b/hosts/desktopnix/default.nix index a4a0c76..71d6f90 100644 --- a/hosts/desktopnix/default.nix +++ b/hosts/desktopnix/default.nix @@ -21,6 +21,7 @@ ../../modules/hardware/zfs.nix ../../modules/optional/streamdeck.nix + ../../modules/optional/printing.nix ./net.nix ./fs.nix diff --git a/hosts/patricknix/default.nix b/hosts/patricknix/default.nix index 85d1b63..97425f8 100644 --- a/hosts/patricknix/default.nix +++ b/hosts/patricknix/default.nix @@ -11,6 +11,7 @@ ../../modules/optional/wayland.nix ../../modules/optional/secureboot.nix + ../../modules/optional/printing.nix ../../modules/hardware/bluetooth.nix ../../modules/hardware/laptop.nix diff --git a/modules/optional/printing.nix b/modules/optional/printing.nix new file mode 100644 index 0000000..4dfaf9c --- /dev/null +++ b/modules/optional/printing.nix @@ -0,0 +1,6 @@ +{pkgs, ...}: { + services.printing = { + enable = true; + drivers = [pkgs.hplipWithPlugin]; + }; +} diff --git a/users/common/graphical/sway3.nix b/users/common/graphical/sway3.nix index b30350a..8daabd1 100644 --- a/users/common/graphical/sway3.nix +++ b/users/common/graphical/sway3.nix @@ -37,18 +37,18 @@ let ]; assigns = { - "d" = [ + "2:d" = [ {class = "^firefox$";} ]; - "a" = [ + "4:a" = [ {class = "^bottles$";} {class = "^steam$";} {class = "^prismlauncher$";} ]; - "F1" = [ + "1:F1" = [ {class = "^Discord$";} ]; - "F2" = [ + "2:F2" = [ {class = "^Signal$";} {class = "^TelegramDesktop$";} ];