e1fbf03dff
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
25 lines
440 B
Nix
25 lines
440 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.my.desktop.printing;
|
|
in {
|
|
options.my.desktop.printing = {
|
|
enable = lib.mkEnableOption null;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services = {
|
|
printing = {
|
|
enable = true;
|
|
cups-pdf.enable = true;
|
|
drivers = [ pkgs.gutenprint ];
|
|
};
|
|
avahi = {
|
|
enable = true;
|
|
nssmdns4 = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
};
|
|
}
|