diff --git a/flake.nix b/flake.nix index 765e08d..9db9f0b 100644 --- a/flake.nix +++ b/flake.nix @@ -27,7 +27,7 @@ rec { specialArgs = { inherit inputs; - pkgs-unstable = nixpkgs-unstable.legacyPackages."${conf.system}"; + pkgs-unstable = import nixpkgs-unstable { config.allowUnfree = true; system = conf.system; }; }; modules = [ private.nixosModules.base diff --git a/sets/workstation.nix b/sets/workstation.nix index 55c6d27..93d7ce8 100644 --- a/sets/workstation.nix +++ b/sets/workstation.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, pkgs-unstable, ... }: { imports = [ @@ -34,5 +34,17 @@ bluetooth.enable = true; opengl.driSupport32Bit = (pkgs.system == "x86_64-linux"); steam-hardware.enable = true; + sane = { + enable = true; + brscan5.enable = true; + }; }; + + nixpkgs.overlays = [ + (final: prev: { + brscan5 = pkgs-unstable.brscan5; + }) + ]; + + users.users.artemis.extraGroups = [ "scanner" ]; }