lol

nixos/sane: point SANE_CONFIG_DIR away from /etc/sane.d

This brings back the ability to e.g. configure sane-airscan with
`environment.etc."sane.d/airscan.conf".text = ...`.

(AFAICT, sane-airscan loads all config files it finds, so it'll first
load the one from the nixos hardware.sane.* configuration, then the user
specified one in /etc/sane.d/airscan.conf.)

Fixes: 4fbec87a5bfc ("nixos/sane: point env vars to /etc for quick reload")

Fixes https://github.com/NixOS/nixpkgs/issues/207262

+2 -2
+2 -2
nixos/modules/services/hardware/sane.nix
··· 28 28 }; 29 29 30 30 env = { 31 - SANE_CONFIG_DIR = "/etc/sane.d"; 31 + SANE_CONFIG_DIR = "/etc/sane-config"; 32 32 LD_LIBRARY_PATH = [ "/etc/sane-libs" ]; 33 33 }; 34 34 ··· 167 167 168 168 environment.systemPackages = backends; 169 169 environment.sessionVariables = env; 170 - environment.etc."sane.d".source = config.hardware.sane.configDir; 170 + environment.etc."sane-config".source = config.hardware.sane.configDir; 171 171 environment.etc."sane-libs".source = "${saneConfig}/lib/sane"; 172 172 services.udev.packages = backends; 173 173