Add workstation-specific settings

This commit is contained in:
ItsDrike 2024-04-13 20:10:01 +02:00
parent fca6296841
commit 27b0d375f2
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
18 changed files with 258 additions and 9 deletions

View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }: let
inherit (lib) mkIf;
cfg = config.myOptions.workstation.printing;
in {
config = mkIf cfg.enable {
# enable cups and add some drivers for common printers
services = {
printing = {
enable = true;
drivers = with pkgs; [
gutenprint
hplip
];
};
# required for network discovery of printers
avahi = {
enable = true;
# resolve .local domains for printers
nssmdns4 = true;
# open the avahi port(s) in the firewall
openFirewall = true;
};
};
};
}