options follow my.schema to avoid conflicts
This commit is contained in:
16
modules/services/printing.nix
Normal file
16
modules/services/printing.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let printingDrivers = [ pkgs.hplip pkgs.hplipWithPlugin ];
|
||||
in {
|
||||
options.my.services.printing.enable = lib.mkEnableOption "enable";
|
||||
config = lib.mkIf config.my.services.printing.enable {
|
||||
services.printing = {
|
||||
enable = true;
|
||||
drivers = printingDrivers;
|
||||
};
|
||||
hardware.sane = {
|
||||
enable = true;
|
||||
extraBackends = printingDrivers;
|
||||
};
|
||||
users.users.jawz.packages = [ pkgs.gnome.simple-scan ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user