nixos/x11: remove leading slash from environment.etc path

Even if the tools that assemble /etc can handle leading slashes, this
still is not correct. For example, you could have both /X11 and X11 in
environment.etc which makes overriding hard.
This commit is contained in:
nikstur 2024-01-28 13:38:09 +01:00
parent a9161ceb5a
commit dff64f549e

View File

@ -710,9 +710,9 @@ in
'';
}
# Needed since 1.18; see https://bugs.freedesktop.org/show_bug.cgi?id=89023#c5
// (let cfgPath = "/X11/xorg.conf.d/10-evdev.conf"; in
// (let cfgPath = "X11/xorg.conf.d/10-evdev.conf"; in
{
${cfgPath}.source = xorg.xf86inputevdev.out + "/share" + cfgPath;
${cfgPath}.source = xorg.xf86inputevdev.out + "/share/" + cfgPath;
});
environment.systemPackages = utils.removePackagesByName