NixOS/system/modules/printing.nix

15 lines
314 B
Nix
Raw Normal View History

2024-06-12 09:54:11 +07:00
{ config, lib, pkgs, ... }:
let
cfg = config.profile.printing;
username = config.profile.user.name;
2024-06-12 09:54:11 +07:00
in
{
config = lib.mkIf cfg.enable {
users.users.${username}.extraGroups = [ "lp" ];
2024-06-12 09:54:11 +07:00
services.printing = {
enable = true;
drivers = [ pkgs.brlaser ]; # Brother Laser Printer
};
};
}