nixos/modules/system/printing/default.nix

16 lines
No EOL
288 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.modules.system.printing;
in
{
options.modules.system.printing = {
enable = mkEnableOption ''
Enable printing with my custom configurations
'';
};
config = mkIf cfg.enable {
services.printing.enable = true;
};
}