3
0
Fork 0
forked from mirrors/nixpkgs

nixos: Add option hardware.sane.configDir

This commit is contained in:
Rickard Nilsson 2014-06-24 10:52:12 +02:00
parent 70548a6ac2
commit 94deea2035

View file

@ -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;