profile/printing: init from legacy

This commit is contained in:
Felix Buehler 2023-01-23 22:56:30 +01:00
parent 9f3ecc5972
commit cf22787664
5 changed files with 25 additions and 12 deletions

View file

@ -3,5 +3,6 @@
{
imports = [
./android
./printing
];
}

View file

@ -0,0 +1,23 @@
{ 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
];
};
}