forked from mirrors/nixpkgs
nixos: Add option hardware.sane.configDir
This commit is contained in:
parent
70548a6ac2
commit
94deea2035
|
@ -34,6 +34,12 @@ in
|
|||
description = "Packages providing extra SANE backends to enable.";
|
||||
};
|
||||
|
||||
hardware.sane.configDir = mkOption {
|
||||
type = types.string;
|
||||
default = "${saneConfig}/etc/sane.d";
|
||||
description = "The value of SANE_CONFIG_DIR.";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
@ -43,7 +49,7 @@ in
|
|||
|
||||
environment.systemPackages = backends;
|
||||
environment.sessionVariables = {
|
||||
SANE_CONFIG_DIR = mkDefault "${saneConfig}/etc/sane.d";
|
||||
SANE_CONFIG_DIR = config.hardware.sane.configDir;
|
||||
LD_LIBRARY_PATH = [ "${saneConfig}/lib/sane" ];
|
||||
};
|
||||
services.udev.packages = backends;
|
||||
|
|
Loading…
Reference in a new issue