nixos/profiles/printing/default.nix

27 lines
471 B
Nix
Raw Normal View History

2024-07-28 21:08:02 +02:00
{
config,
lib,
pkgs,
...
}:
2023-01-23 22:56:30 +01:00
let
cfg = config.my.profiles.printing;
in
{
options.my.profiles.printing = with lib; {
enable = mkEnableOption "printing profile";
};
config = lib.mkIf cfg.enable {
services.printing.enable = true;
services.printing.drivers = with pkgs; [
gutenprint
gutenprintBin
2023-01-23 22:56:30 +01:00
hplip
];
programs.system-config-printer.enable = true;
2024-11-17 00:21:14 +01:00
environment.systemPackages = with pkgs; [ simple-scan ];
2023-01-23 22:56:30 +01:00
};
}