mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
Generate hal configuration file form the xserver settings.
svn path=/nixos/branches/modular-nixos/; revision=16046
This commit is contained in:
parent
0bd210bb78
commit
f61a3ebd2c
@ -336,7 +336,31 @@ let
|
||||
[ pkgs.xorg.fontadobe100dpi
|
||||
pkgs.xorg.fontadobe75dpi
|
||||
];
|
||||
|
||||
|
||||
|
||||
halConfigFiles = [
|
||||
(pkgs.writeTextFile {
|
||||
name = "hal-policy-keymap";
|
||||
destination = "/policy/30-keymap.fdi";
|
||||
text = ''
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<deviceinfo version="0.2">
|
||||
<device>
|
||||
<match key="info.capabilities" contains="input.keymap">
|
||||
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
|
||||
</match>
|
||||
|
||||
<match key="info.capabilities" contains="input.keys">
|
||||
<merge key="input.x11_options.XkbRules" type="string">base</merge>
|
||||
<merge key="input.x11_options.XkbModel" type="string">${cfg.xkbModel}</merge>
|
||||
<merge key="input.x11_options.XkbLayout" type="string">${cfg.layout}</merge>
|
||||
<append key="input.x11_options.XkbOptions" type="strlist">${cfg.xkbOptions}</append>
|
||||
</match>
|
||||
</device>
|
||||
</deviceinfo>
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
||||
configFile = stdenv.mkDerivation {
|
||||
name = "xserver.conf";
|
||||
@ -543,6 +567,10 @@ mkIf cfg.enable {
|
||||
};
|
||||
};
|
||||
|
||||
hal = {
|
||||
extraFdi = halConfigFiles;
|
||||
};
|
||||
|
||||
extraJobs = [{
|
||||
name = "xserver";
|
||||
job = ''
|
||||
|
Loading…
Reference in New Issue
Block a user