add scanner support

This commit is contained in:
2025-11-03 17:17:23 +01:00
parent 0698de4642
commit e3d29fac2c
3 changed files with 14 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
modules = [
./devices/desk.nix
./hardware/nvidia.nix
./hardware/scanner.nix
./configuration.nix
./plasma.nix

12
hardware/scanner.nix Normal file
View File

@@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
hardware.sane = {
enable = true;
openFirewall = true;
extraBackends = [
pkgs.sane-epson2
pkgs.iscan-network-nt
];
};
}

View File

@@ -6,7 +6,7 @@
users.users.shatteredmint = {
isNormalUser = true;
extraGroups = [ "wheel" "nixos-admins" "cdrom" ];
extraGroups = [ "wheel" "nixos-admins" "cdrom" "scanner" "lp" ];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKT9u43WNMlu3gnu5z9Twt1vkdNdpf6REfEK/OT4qxjK shatteredmint"