| 12 Oct 2025 |
samasaur | depends on where it needs to be copied to | 20:39:53 |
samasaur | the janky way is to write a custom activation script that copies the file where you need it to go | 20:40:19 |
samasaur | if it's in /etc you can use environment.etc though (assuming sketchybar is fine with symlinks) | 20:40:50 |
samasaur | * the janky way is to write a custom activation script that copies the directory where you need it to go | 20:40:54 |
cujanovic.filip | I'm a noob about this I just started with nix today 😄 I enabled sketchybar like this
enable = true;
config = pkgs.lib.readFile ./.config/macos/sketchybar/sketchybarrc;
};
where the sketchybarrc contains the lua code that needs to be loaded, so I guess I need to put the whole dir where ever nix is putting this sketchybarrc file too
| 20:44:07 |
samasaur | i'm confused what exactly you're trying to do | 20:49:20 |
samasaur | it sounds to me like you are having nix-darwin read one of your sketchybar config files, but you want it to read or copy the entire directory instead? | 20:50:07 |
cujanovic.filip | yep the nix-darwin is reading the file that file of the sketchybar, but all other plugins for sketchybar are inside the /.config/macos/sketchybar/ dir and sketchybarrc depends on the other files from the /.config/macos/sketchybar/ | 20:52:11 |
samasaur | gotcha | 20:52:29 |
samasaur | okay so looking at the source for nix-darwin's sketchybar module, i see that it doesn't actually copy/link the config file into place anywhere, it just passes it directly as a command-line argument | 20:54:23 |
samasaur | (when not empty) | 20:54:38 |
cujanovic.filip | oh yes, that is why I read the file and pass it as a string | 20:55:49 |
samasaur | now I am not a sketchybar user but my guess is that passing that is what's causing problems with your plugins? | 20:55:49 |
samasaur | although the docs seem to imply that it should look in ~/.config/sketchybar by default | 20:56:11 |
samasaur | the easy solution — assuming i'm understand their docs correctly — would be to just remove the config line from your config, because then it will default to looking in ~/.config/sketchybar, which it seems like is where your config files already are | 20:56:59 |
cujanovic.filip | when I look at the org.nixos.sketchybar.plist I can see the file location in the sandbox nix environment and since the other files are not they the plugins are not loaded | 20:57:07 |
cujanovic.filip | ah okay, let me try that then :) | 20:57:27 |
samasaur | that does have the "down"side of your sketchybar config not being managed/tracked by nix (which matters more if you care about purity/reproducibility), but nix-darwin's current module doesn't have native support for what you're doing | 20:58:45 |
cujanovic.filip | I think that is fine for me for now, since I just dipped my toes into nix 😄 But seeing what it can do I see why people love it :smi | 20:59:58 |
cujanovic.filip | * I think that is fine for me for now, since I just dipped my toes into nix 😄 But seeing what it can do I see why people love it :D | 21:00:02 |
samasaur | totally fair yeah | 21:00:16 |
samasaur | do feel free to keep asking questions, and if you later want to improve the nix-darwin module i'd be happy to work with u on it | 21:01:38 |
cujanovic.filip | that worked! It seems that I just overcomplicated things 😄 Thanks! | 21:07:39 |
| 13 Oct 2025 |
ivy | i would love if someone on macos with merge permissions can merge my pr pls https://github.com/NixOS/nixpkgs/pull/445407 | 09:33:10 |
ivy | or have a final look over | 09:33:41 |
ivy | once this is merged i got a few for nix-darwin | 09:52:06 |
ivy | then we can have proper karabiner working again and kanata on darwin | 09:52:22 |
Erik | Hey folks, I’m sure you get this question a lot but I can’t seem to find an answer: are packages able to install/symlink files in /Library subdirectories?
Asking because I tried to package a VST and the /Library/Audio/Plugins/… files are nowhere to be found.
I figured I’d check an existing package dexed, which installs an application in /Applications and supposedly installs the Audio Units under /Library/…, but those are also nowhere to be found when added to nix-darwin. Nor home-manager for that matter… | 10:27:33 |
Erik | * Hey folks, I’m sure you get this question a lot but I can’t seem to find an answer: are packages able to install/symlink files in /Library subdirectories?
Asking because I tried to package a VST and the /Library/Audio/Plugins/… files are nowhere to be found.
I figured I’d check an existing package dexed, which installs an application in /Applications and supposedly installs the Audio Units under /Library/…, but those are also nowhere to be found when added to nix-darwin. Nor home-manager for that matter…
Which seems to imply any kind of audio plug-in simply cannot be installed using nix-darwin? | 10:29:54 |
ivy | yes | 10:33:06 |