From 296a386ee442c8c1d66766a7bac4f58ad65036d3 Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Wed, 4 Jun 2025 19:13:29 +0200 Subject: [PATCH 1/4] hermit: programs: add ungoogled-chromium --- hosts/hermit/programs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/hermit/programs.nix b/hosts/hermit/programs.nix index f5e234d..4ac32e3 100644 --- a/hosts/hermit/programs.nix +++ b/hosts/hermit/programs.nix @@ -70,6 +70,7 @@ thunderbird trash-cli typst + ungoogled-chromium util-linux v4l-utils vlc From 22ab0638d2c5bfd66ab2eb776c2f0a39a379f3fe Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Wed, 4 Jun 2025 22:31:01 +0200 Subject: [PATCH 2/4] kanata: add my shitty dell keyboard --- modules/services/kanata/module.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/services/kanata/module.nix b/modules/services/kanata/module.nix index b7164d5..c919c5b 100644 --- a/modules/services/kanata/module.nix +++ b/modules/services/kanata/module.nix @@ -22,6 +22,11 @@ in { devices = ["/dev/input/by-path/platform-i8042-serio-0-event-kbd"]; config = builtins.readFile (./. + "/main.kbd"); }; + + keyboards.dell-keyboard = { + devices = ["/dev/input/by-path/usb-Dell_Dell_USB_Keyboard-event-kbd "]; + config = builtins.readFile (./. + "/main.kbd"); + }; }; }; } From 609e8e4439736f10f05c376593b5efbdced1e63c Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Wed, 4 Jun 2025 22:31:32 +0200 Subject: [PATCH 3/4] services: printing: init Adds CUPS and avahi for printing and discovering printers on the network. --- modules/services/printing/module.nix | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 modules/services/printing/module.nix diff --git a/modules/services/printing/module.nix b/modules/services/printing/module.nix new file mode 100644 index 0000000..5df6b53 --- /dev/null +++ b/modules/services/printing/module.nix @@ -0,0 +1,42 @@ +{ + lib, + pkgs, + ... +}: let + inherit (lib.options) mkEnableOption; +in { + options.modules.services.cups.enable = mkEnableOption "CUPS, the Common UNIX printing system"; + + config = { + services = { + # enable CUPS, the Common UNIX printing system. + printing = { + enable = true; + + # Move CUPSd's temporary directory. + # By default, it resides in /tmp. + tempDir = "/tmp/cups"; + + # Do not advertise shared printers. + browsing = false; + + # Enable the CUPS webinterface, accessible at localhost:631. + webInterface = true; + + # Some local or network printers might need additional drivers. + # These can be added into here. + drivers = [ + pkgs.cups-kyocera-ecosys-m552x-p502x + ]; + }; + + # Add and autodiscover printers on the network via the IPP everywhere[1] protocol. + # [1] https://www.pwg.org/ipp/everywhere.html + avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; + }; + }; +} From 92bfadfea7656728f4c465262a6194f5a5b94383 Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Wed, 4 Jun 2025 22:32:29 +0200 Subject: [PATCH 4/4] hermit: enable own cups module, remove prining service --- hosts/hermit/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/hermit/configuration.nix b/hosts/hermit/configuration.nix index 2fe6657..1282776 100644 --- a/hosts/hermit/configuration.nix +++ b/hosts/hermit/configuration.nix @@ -14,7 +14,6 @@ services = { fstrim.enable = lib.mkDefault true; thermald.enable = true; - printing.enable = true; }; virtualisation.docker.enable = true; @@ -66,6 +65,7 @@ kanata.enable = true; uwsm.enable = false; greetd.enable = false; + cups.enable = true; media.mpd = { enable = true;