2024-12-23 17:03:36 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2024-04-04 12:37:57 +02:00
|
|
|
|
2024-12-23 17:03:36 +01: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
|
|
|
};
|
|
|
|
}
|