zaneyos/config/system/printer.nix

16 lines
344 B
Nix
Raw Normal View History

2024-02-08 04:43:53 +01:00
{ config, lib, username, ... }:
2024-02-08 04:03:29 +01:00
let inherit (import ../../options.nix) printer; in
lib.mkIf (printer == true) {
services = {
printing.enable = true;
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
};
2024-02-08 04:43:53 +01:00
hardware.sane.enable = true;
users.users.${username}.extraGroups = ["scanner" "lp"];
2024-02-08 04:03:29 +01:00
}