New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix services.xserver.extraLayouts under GNOME 3 #76591
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Introduced in 0.6.0, documented in https://xkbcommon.org/doc/current/group__include-path.html. Perhaps gnome-desktop should handle the other paths as well.
Will libgnomekbd need patching as well? Or is this patch sufficient for previews to work in control center?
733ed1a
to
e9bdff8
Compare
e9bdff8
to
729bd0b
Compare
The previews work. They do have the inesthetic question mark that was mentioned in an upstream issue though. Wait, I could patch libxklavier against that while we're at it. EDIT: I'm looking into it. Also I thought I had hit "Comment" on this earlier but apparently didn't. |
Nice work @lourkeur! I have been trying to figure out what the issue was with gnome but I gave up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect. Amazing work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified in VM that without this patch, the custom layout does not appear in gnome-control-center. With it, it does:
Using the following config:
services.xserver.extraLayouts.custom = {
description = "my own custom layout";
symbolsFile = pkgs.fetchurl {
url = "https://gitlab.epfl.ch/bettens/nixos-profiles/raw/6750def9e2b5f44276df9538c8cf9b88c0e385ba/segments/custom-layout/symbols/custom";
hash = "sha256-95VFh6t/jthUde5fuiY+zVFbCExJrWTxLcbBA8X3wv4=";
};
languages = [ "en" ];
};
Thanks again. |
Motivation for this change
Fix #76590
Things done
Targeting staging because it cascades through lots of GNOME derivations unfortunately.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
) inapplicablenix path-info -S
before and after) inapplicableNotify maintainers
cc @lethalman @jtojnar @hedning @worldofpeace for GNOME 3
cc @rnhmjoj for x11/extra-layouts