mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
profile/printing: init from legacy
This commit is contained in:
parent
9f3ecc5972
commit
cf22787664
5 changed files with 25 additions and 12 deletions
23
profiles/printing/default.nix
Normal file
23
profiles/printing/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue