* Use the hal-info package.
svn path=/nixos/trunk/; revision=16693
This commit is contained in:
parent
dc093b57dd
commit
9493ecc2a4
@ -9,15 +9,11 @@ let
|
||||
|
||||
inherit (pkgs) hal;
|
||||
|
||||
fdi =
|
||||
if cfg.extraFdi == [] then
|
||||
"${hal}/share/hal/fdi"
|
||||
else
|
||||
pkgs.buildEnv {
|
||||
name = "hal-fdi";
|
||||
pathsToLink = [ "/preprobe" "/information" "/policy" ];
|
||||
paths = [ "${hal}/share/hal/fdi" ] ++ cfg.extraFdi;
|
||||
};
|
||||
fdi = pkgs.buildEnv {
|
||||
name = "hal-fdi";
|
||||
pathsToLink = [ "/share/hal/fdi" ];
|
||||
paths = cfg.packages;
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
@ -31,17 +27,16 @@ in
|
||||
|
||||
enable = mkOption {
|
||||
default = true;
|
||||
description = "
|
||||
description = ''
|
||||
Whether to start the HAL daemon.
|
||||
";
|
||||
'';
|
||||
};
|
||||
|
||||
extraFdi = mkOption {
|
||||
packages = mkOption {
|
||||
default = [];
|
||||
example = [ "/nix/store/.../fdi" ];
|
||||
description = "
|
||||
Extend HAL daemon configuration with additionnal paths.
|
||||
";
|
||||
description = ''
|
||||
Packages containing additional HAL configuration data.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
@ -55,6 +50,8 @@ in
|
||||
|
||||
environment.systemPackages = [hal];
|
||||
|
||||
services.hal.packages = [hal pkgs.hal_info];
|
||||
|
||||
users.extraUsers = singleton
|
||||
{ name = "haldaemon";
|
||||
uid = config.ids.uids.haldaemon;
|
||||
@ -79,9 +76,9 @@ in
|
||||
# !!! HACK? These environment variables manipulated inside
|
||||
# 'src'/hald/mmap_cache.c are used for testing the daemon
|
||||
environment =
|
||||
{ HAL_FDI_SOURCE_PREPROBE = "${fdi}/preprobe";
|
||||
HAL_FDI_SOURCE_INFORMATION = "${fdi}/information";
|
||||
HAL_FDI_SOURCE_POLICY = "${fdi}/policy";
|
||||
{ HAL_FDI_SOURCE_PREPROBE = "${fdi}/share/hal/fdi/preprobe";
|
||||
HAL_FDI_SOURCE_INFORMATION = "${fdi}/share/hal/fdi/information";
|
||||
HAL_FDI_SOURCE_POLICY = "${fdi}/share/hal/fdi/policy";
|
||||
};
|
||||
|
||||
preStart =
|
||||
|
@ -359,10 +359,10 @@ let
|
||||
];
|
||||
|
||||
|
||||
halConfigFiles = [
|
||||
halConfigFiles = singleton
|
||||
(pkgs.writeTextFile {
|
||||
name = "hal-policy-keymap";
|
||||
destination = "/policy/30-keymap.fdi";
|
||||
destination = "/share/hal/fdi/policy/30-keymap.fdi";
|
||||
text = ''
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<deviceinfo version="0.2">
|
||||
@ -380,8 +380,8 @@ let
|
||||
</device>
|
||||
</deviceinfo>
|
||||
'';
|
||||
})
|
||||
];
|
||||
});
|
||||
|
||||
|
||||
configFile = stdenv.mkDerivation {
|
||||
name = "xserver.conf";
|
||||
@ -618,9 +618,7 @@ mkIf cfg.enable {
|
||||
};
|
||||
};
|
||||
|
||||
hal = {
|
||||
extraFdi = halConfigFiles;
|
||||
};
|
||||
hal.packages = halConfigFiles;
|
||||
|
||||
extraJobs = [{
|
||||
name = "xserver";
|
||||
|
Loading…
Reference in New Issue
Block a user