NixOS/system/modules/scanner.nix

22 lines
419 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
2024-06-12 09:54:11 +07:00
let
cfg = config.profile.scanner;
username = config.profile.user.name;
2024-06-12 09:54:11 +07:00
in
{
config = lib.mkIf cfg.enable {
users.users.${username}.extraGroups = [ "scanner" ];
environment.systemPackages = with pkgs; [ skanlite ];
2024-06-12 09:54:11 +07:00
hardware.sane = {
enable = true;
brscan4.enable = true; # Brother Scanner
extraBackends = with pkgs; [ sane-airscan ];
2024-06-12 09:54:11 +07:00
};
};
}