Compare commits
4 commits
653938a61f
...
92bfadfea7
Author | SHA1 | Date | |
---|---|---|---|
92bfadfea7 |
|||
609e8e4439 |
|||
22ab0638d2 |
|||
296a386ee4 |
4 changed files with 49 additions and 1 deletions
|
@ -14,7 +14,6 @@
|
||||||
services = {
|
services = {
|
||||||
fstrim.enable = lib.mkDefault true;
|
fstrim.enable = lib.mkDefault true;
|
||||||
thermald.enable = true;
|
thermald.enable = true;
|
||||||
printing.enable = true;
|
|
||||||
};
|
};
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
@ -66,6 +65,7 @@
|
||||||
kanata.enable = true;
|
kanata.enable = true;
|
||||||
uwsm.enable = false;
|
uwsm.enable = false;
|
||||||
greetd.enable = false;
|
greetd.enable = false;
|
||||||
|
cups.enable = true;
|
||||||
|
|
||||||
media.mpd = {
|
media.mpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
thunderbird
|
thunderbird
|
||||||
trash-cli
|
trash-cli
|
||||||
typst
|
typst
|
||||||
|
ungoogled-chromium
|
||||||
util-linux
|
util-linux
|
||||||
v4l-utils
|
v4l-utils
|
||||||
vlc
|
vlc
|
||||||
|
|
|
@ -22,6 +22,11 @@ in {
|
||||||
devices = ["/dev/input/by-path/platform-i8042-serio-0-event-kbd"];
|
devices = ["/dev/input/by-path/platform-i8042-serio-0-event-kbd"];
|
||||||
config = builtins.readFile (./. + "/main.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");
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
42
modules/services/printing/module.nix
Normal file
42
modules/services/printing/module.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue