mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
23 lines
481 B
Nix
23 lines
481 B
Nix
{ config, lib, pkgs, ... }:
|
|
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; [
|
|
canon-cups-ufr2
|
|
gutenprint
|
|
hplip
|
|
];
|
|
programs.system-config-printer.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
gnome.simple-scan
|
|
];
|
|
};
|
|
}
|