diff --git a/flake.nix b/flake.nix index 460d47d..b3d52eb 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,7 @@ modules = [ ./devices/desk.nix ./hardware/nvidia.nix + ./hardware/scanner.nix ./configuration.nix ./plasma.nix diff --git a/hardware/scanner.nix b/hardware/scanner.nix new file mode 100644 index 0000000..9f9740e --- /dev/null +++ b/hardware/scanner.nix @@ -0,0 +1,12 @@ + +{ config, lib, pkgs, ... }: +{ + hardware.sane = { + enable = true; + openFirewall = true; + extraBackends = [ + pkgs.sane-epson2 + pkgs.iscan-network-nt + ]; + }; +} diff --git a/users/shatteredmint.nix b/users/shatteredmint.nix index e7b87dc..70d2b0d 100644 --- a/users/shatteredmint.nix +++ b/users/shatteredmint.nix @@ -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"