fix karabiner-elements on macos
its a bit of a crazy nightmare and depends on my other pr #1594 but it does work finally responding finally to #1041
if needed, i could split up the driverkit stuff into a separate option so that it can be used with kanata and kmonad
okay, these checks will fail, because they depend on a new two prs i have for nixpkgs https://github.com/NixOS/nixpkgs/pull/444872 and https://github.com/NixOS/nixpkgs/pull/444622
but the layout is much more modular and allows for actual configuration for kanata and other karabiner-driverkit derived packages
Thanks for that change!
I'm on macOS Tahoe, and here's a summary from the stuff I run into (with the flake configured as mentioned in this comment: https://github.com/nix-darwin/nix-darwin/pull/1595#discussion_r2413256743):
-
Initially I get spammed with "The program is damaged and can't be opened"
-
-
It partially works after allowing this at the "Privacy & Security screen":
-
-
I don't know how other packages do this, but it would be possible to remove the quarantine attribute: https://www.perplexity.ai/search/i-have-an-app-i-want-to-instal-5_FvnddFTo2rX9MhymzUkg#1
-
-
Clicking "Settings" on the Karabiner tray icon results in "The file can't be found"
-
-
Launch EventViewer results in "The file can't be found"
-
-
Even though the permissions are enabled, Karabiner keeps asking to enable them:
-
-
-
-
are you using my fork of nixpkgs?
https://github.com/NixOS/nixpkgs/pull/445407#issue-3443644951 is needed
nice work
okay it's been merged use master
Cool! I'd be happy to start using this. I would like to use it to make Aerospace easier to use on my Mac :)
I'm not a maintainer or anything, but there is one check failing in the pipeline. I guess that needs to be fixed before this is in "ready" state? No pressure, just curiosity and trying to be helpful.
Cool! I'd be happy to start using this. I would like to use it to make Aerospace easier to use on my Mac :)
I'm not a maintainer or anything, but there is one check failing in the pipeline. I guess that needs to be fixed before this is in "ready" state? No pressure, just curiosity and trying to be helpful.
this should work as long as you use master, and unstable in a lil bit once it gets merged into that, i'm also backporting karabiner-dk to 25.05
@Enzime: is this PR an appropriate solution for #1041?
As an enthusiast it'd be nice to get Karabiner working. Would this PR be an appropriate solution to that, @Enzime?
Not meaning to be pushy, but I'd also prefer to just depend on nix-darwin and not on a fork to get this functionality :) Thanks!
everything has been merged into main and 25.05 so it should be all good
Hello, thanks for your work! I'm trying to use your work but I have the same issues as @daneov mentioned. Did I miss something? I use nixpkgs/master and your two PR on nix-darwin.
When I apply my flake, it seems to be stuck at "attempt to activate karabiner system extension and start daemons" and I see popups about the application being not found and damaged.
I just have set this in my config:
services.karabiner-elements.enable = true;
Hello, thanks for your work! I'm trying to use your work but I have the same issues as @daneov mentioned. Did I miss something? I use nixpkgs/master and your two PR on nix-darwin.
When I apply my flake, it seems to be stuck at "attempt to activate karabiner system extension and start daemons" and I see popups about the application being not found and damaged.
I just have set this in my config:
services.karabiner-elements.enable = true;
Same for me. Machine restart helped unstuck "attempt to activate [...]", but I am constantly getting popups about app being damaged and the karabiner doesn't seem to load config and run properly.
Hello, thanks for your work! I'm trying to use your work but I have the same issues as @daneov mentioned. Did I miss something? I use nixpkgs/master and your two PR on nix-darwin. When I apply my flake, it seems to be stuck at "attempt to activate karabiner system extension and start daemons" and I see popups about the application being not found and damaged. I just have set this in my config:
services.karabiner-elements.enable = true;Same for me. Machine restart helped unstuck "attempt to activate [...]", but I am constantly getting popups about app being damaged and the karabiner doesn't seem to load config and run properly.
Assuming this can be fixed automatically, it'd ideally be part of this PR. I think this relates to the app not being signed. @kerdamon / @AdoPi : could you check whether the Security portion of Settings has an "app blocked" thingie, which you should be able to "Run anyway".
@auscyber: I mean that I'd prefer not to depend on a fork, so getting this into master seems preferable :)
Yes it was authorized to run in my case, at least from what I remember.
i've fixed and changed this to use the new pathsToLink and this is a lot less sus when it comes to copying folders into /Library
@Enzime thoughts?
dont have time to dive in at the moment but you do seem to have some spurious formatting changes; it would be nice if you could amend your commits to remove those
dont have time to dive in at the moment but you do seem to have some spurious formatting changes; it would be nice if you could amend your commits to remove those
why would they have that out of curiosity ? like why would formatting it do that?
I'm trying to use this now and experiencing issues like
setting up /Applications/Nix Apps...
rsync: [sender] change_dir "/nix/store/3k5w2n96cycvi5flad2ri4va4fjdn74k-system-applications//Library/Application" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.4.1]
Is it possible that the fix for allowing spaces somehow got broken again? I'm using follows with latest nixos-unstable.