-
-
Notifications
You must be signed in to change notification settings - Fork 463
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
services.karabiner-elements is broken after Karabiner-Elements v15.0 #1041
Comments
Did you find any workarounds for this or a way to downgrade karabiner in nixpkgs? |
@utkarshgupta137 it shouldn't require anything special, something like this is working fine for me (where nixpkgs.overlays = [
(_: prev: {
# https://github.com/LnL7/nix-darwin/issues/1041
inherit (inputs.nixpkgs-stable.legacyPackages.${prev.system}) karabiner-elements;
})
]; |
I decided to set nix-darwin to follow the stable nixpkgs channel and use the 14.x Karabiner. This was a good reminder for me that OS-level things like nix-darwin should not use unstable packages. Relevant part of my nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs-stable";
}; |
I haven’t had the time to look into this but I’d review a PR fixing the module. It would need some conditionals around the package version to support multiple releases (I must cut branches soon…). I wouldn’t say this is particularly an unstable channel thing since it might still be broken by 24.11’s release if nobody gets around to fixing the module. |
@ofalvai thanks it's a nice workaround
|
any update? it seem that there are still issues with installing Karabiner nixpkgs.url = "github:nixos/nixpkgs/24.11-beta";
darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
}; |
I'm currently using this in my dotfiles {
nixpkgs.overlays = [
(self: super: {
karabiner-elements = super.karabiner-elements.overrideAttrs (old: {
version = "14.13.0";
src = super.fetchurl {
inherit (old.src) url;
hash = "sha256-gmJwoht/Tfm5qMecmq1N6PSAIfWOqsvuHU8VDJY8bLw=";
};
});
})
];
} |
Hi,
After Karabiner-Elements v15.0, a darwin-rebuild causes the following error:
Upon inspection,
/nix/store/fkjp2mw8rmysra1fg3yxcm5n72am4309-launchd/user/Library/LaunchAgents/org.pqrs.karabiner.agent.karabiner_grabber.plist
links to${pkgs.karabiner-elements}/Library/LaunchAgents/org.pqrs.karabiner.agent.karabiner_observer.plist
The symlinks above are created here:
nix-darwin/modules/services/karabiner-elements/default.nix
Lines 119 to 121 in a8968d8
${pkgs.karabiner-elements}/Library/LaunchAgents/
is no longer a valid path because the folderLaunchAgents
no longer exists in v15.0It appears this is not the only breaking change though. It seems installing Karabiner-Elements v15.0 using
brew
introduces two new apps "Karabiner-Elements Non-Priviledged Agent.app" and "Karabiner-Elements Priviledged Daemons.app" in Login Items which weren't there before v15.0.The text was updated successfully, but these errors were encountered: