nix/modules/system/hardware/printing.nix

24 lines
395 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2024-04-04 12:37:57 +02:00
with lib;
let
cfg = config.settings.hardware.printing;
in {
options = {
settings.hardware.printing.enable = lib.mkOption {
type = lib.types.bool;
description = ''
Enable printer configuration
'';
};
};
config = mkIf cfg.enable {
services.printing = {
enable = true;
drivers = [ pkgs.hplip ];
};
2024-04-04 12:37:57 +02:00
};
}