1
0
Fork 0

add(printer)

This commit is contained in:
Philipp 2025-09-27 16:52:46 +02:00
parent 1845f17799
commit b89d7fd2ee
Signed by: Philipp
GPG key ID: B27C3DE2FD94AFC3

View file

@ -0,0 +1,31 @@
{
lib,
config,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.services.printer;
in
{
options.${namespace}.services.printer = {
enable = mkBoolOpt false "Printer";
};
config = mkIf cfg.enable {
services.printing = {
enable = true;
drivers = [ pkgs.hplip ];
};
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
};
}