19 Oct 2024 |
naemi449151 | anyone managing gnome extensions on a non-nixos distro? I can install them just fine, but they don't seem to get linked to the correct location and thus can't be enabled | 12:29:23 |
naemi449151 | they should be placed in ~/.local/share/gnome-shell/extensions | 12:29:57 |
naemi449151 | I can see that the extensions exist in /nix/store/*-home-manager-files/.local/share/gnome-shell/extensions, but there's something that's missing here that should link that to my home | 13:28:08 |
naemi449151 | kind of figured it out, but need some help with cleaning it up; I have a list of extensions I install and then use xdg.dataFile to link them, but it's a duplicate effort that I should be able to map together but I don't understand these parts of nix well enough: https://paste.debian.net/plainh/a4bba006 | 15:02:52 |
| @_oftc_leungbk:matrix.org joined the room. | 16:56:29 |
| mwoodpatrickmx joined the room. | 16:58:45 |
| @_oftc_leungbk:matrix.org left the room. | 17:18:38 |
erahhal | Someone here a while ago had mentioned to add xdg.configFile."nvim/init.lua".text = lib.mkBefore "<config>" to prepend neovim config before the autogenerated one, but with a recent update, this no longer works. The entire config is now the prepended config, and the generated config no longer is added. How should prepending config to the nvim config be done now? | 21:12:08 |
erahhal | Oh, red herring. It doesn't work properly even without that config prepended. Something has seriously changed about how nvim configs are loaded recently | 21:41:07 |
Austin Horstman | Yeah, I'd take a look at the composable neovim PR to see how configs vs wrappers might have changed. | 21:41:38 |
Austin Horstman | I'll see if i can find it | 21:41:43 |
Austin Horstman | https://github.com/NixOS/nixpkgs/pull/344541 | 21:42:03 |
Austin Horstman | I believe Home-Manager needs to get updated, too. | 21:42:25 |
erahhal | Seems that the config value in { plugin = <plugin>; config = "config"; } is now ignored | 21:42:39 |
erahhal | In reply to @khaneliman:matrix.org I believe Home-Manager needs to get updated, too. Oh interesting, thanks | 21:45:08 |
erahhal | Def sounds related | 21:45:16 |
Austin Horstman | We had a test in Nixvim that failed with those bundled configs and there was some discussion around it https://github.com/nix-community/nixvim/pull/2343#issuecomment-2395688731 | 21:45:53 |
erahhal | Yea I see it in your original link | 21:46:12 |
erahhal | https://github.com/NixOS/nixpkgs/pull/344541#issuecomment-2419110494 | 21:46:31 |
Austin Horstman | Might just need a tweak like https://github.com/nix-community/nixvim/pull/2414 in HM | 21:47:50 |
| @_oftc___monty__:matrix.org left the room. | 22:05:55 |
Austin Horstman | It seems like https://github.com/nix-community/home-manager/pull/5976 this works... need teto's input if it's done right | 22:09:48 |
Austin Horstman | (I don't use home-manager neovim module, just going off the test passing with the change) | 22:11:15 |
erahhal | I was able to get it working with a hack until the fix is in:
concattedLuaConfig = ''
lua << EOF
''
+ prependedLuaConfig + lib.foldl' (x: y: x + (if y.config == null then "" else y.config)) "" config.programs.neovim.plugins
+ ''
EOF
'';
| 22:21:46 |
erahhal | and setting extraConfig to concattedLuaConfig | 22:21:57 |
Austin Horstman | In reply to @erahhal:matrix.org
I was able to get it working with a hack until the fix is in:
concattedLuaConfig = ''
lua << EOF
''
+ prependedLuaConfig + lib.foldl' (x: y: x + (if y.config == null then "" else y.config)) "" config.programs.neovim.plugins
+ ''
EOF
'';
Could you point your home-manager input at my branch to test if the fix works properly, for you? It says the test passes. But, a real world test always feels better. | 23:19:48 |
erahhal | Sure, give me a bit | 23:20:17 |
Austin Horstman | No rush | 23:20:24 |
erahhal | Yup, works. Thank you! | 23:46:47 |
20 Oct 2024 |
Tumble | Does home.sessionVariables set environment variables that should show up in `env` | 08:58:59 |