fixing printing

This commit is contained in:
2024-11-03 20:18:09 +02:00
parent f1d6c30127
commit accc91672b
5 changed files with 32 additions and 410 deletions

View File

@@ -18,6 +18,7 @@
./nsd-acme
./ping_exporter
./postfix
./printing
./remote-builder
./ssh8022
./syncthing

View File

@@ -0,0 +1,27 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.mj.services.printing;
in
{
options.mj.services.printing = with lib.types; {
enable = lib.mkEnableOption "Enable printing";
};
config = lib.mkIf cfg.enable {
services.printing = {
enable = true;
drivers = [
pkgs.canon-cups-ufr2
pkgs.samsung-unified-linux-driver_4_01_17
(pkgs.writeTextDir "share/cups/model/HP_Color_Laser_15x_Series.ppd" (
builtins.readFile ../../../shared/HP_Color_Laser_15x_Series.ppd
))
];
};
};
}