1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 03:32:08 +01:00
github.com-tboerger-nixos-c.../shared/services/printing/default.nix

33 lines
534 B
Nix
Raw Normal View History

{ pkgs, lib, config, options, ... }:
with lib;
let
cfg = config.personal.services.printing;
in
{
options = {
personal = {
services = {
printing = {
enable = mkEnableOption "Printing" // {
default = true;
};
};
};
};
};
config = mkIf cfg.enable {
services = {
printing = {
enable = true;
drivers = [
(pkgs.writeTextDir "share/cups/model/kmC35np.ppd" (builtins.readFile ./kmC35np.ppd))
];
};
};
};
}