Compare commits

..

4 commits

Author SHA1 Message Date
92bfadfea7
hermit: enable own cups module, remove prining service 2025-06-04 22:32:31 +02:00
609e8e4439
services: printing: init
Adds CUPS and avahi for printing and discovering
printers on the network.
2025-06-04 22:31:36 +02:00
22ab0638d2
kanata: add my shitty dell keyboard 2025-06-04 22:31:23 +02:00
296a386ee4
hermit: programs: add ungoogled-chromium 2025-06-04 22:30:49 +02:00
4 changed files with 49 additions and 1 deletions

View file

@ -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;

View file

@ -70,6 +70,7 @@
thunderbird
trash-cli
typst
ungoogled-chromium
util-linux
v4l-utils
vlc

View file

@ -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");
};
};
};
}

View file

@ -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;
};
};
};
}