!YllBCgVdcoakoavZvX:rycee.net

Home Manager

1418 Members
Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager)272 Servers

Load older messages


SenderMessageTime
19 Oct 2024
@_oftc_naemi449151:matrix.orgnaemi449151 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
@_oftc_naemi449151:matrix.orgnaemi449151they should be placed in ~/.local/share/gnome-shell/extensions12:29:57
@_oftc_naemi449151:matrix.orgnaemi449151 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
@_oftc_naemi449151:matrix.orgnaemi449151 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@_oftc_leungbk:matrix.org joined the room.16:56:29
@mwoodpatrickmx:matrix.orgmwoodpatrickmx joined the room.16:58:45
@_oftc_leungbk:matrix.org@_oftc_leungbk:matrix.org left the room.17:18:38
@erahhal:matrix.orgerahhal 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:matrix.orgerahhalOh, red herring. It doesn't work properly even without that config prepended. Something has seriously changed about how nvim configs are loaded recently21:41:07
@khaneliman:matrix.orgAustin HorstmanYeah, I'd take a look at the composable neovim PR to see how configs vs wrappers might have changed.21:41:38
@khaneliman:matrix.orgAustin HorstmanI'll see if i can find it21:41:43
@khaneliman:matrix.orgAustin Horstmanhttps://github.com/NixOS/nixpkgs/pull/34454121:42:03
@khaneliman:matrix.orgAustin HorstmanI believe Home-Manager needs to get updated, too.21:42:25
@erahhal:matrix.orgerahhal Seems that the config value in { plugin = <plugin>; config = "config"; } is now ignored 21:42:39
@erahhal:matrix.orgerahhal
In reply to @khaneliman:matrix.org
I believe Home-Manager needs to get updated, too.
Oh interesting, thanks
21:45:08
@erahhal:matrix.orgerahhalDef sounds related21:45:16
@khaneliman:matrix.orgAustin HorstmanWe 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-239568873121:45:53
@erahhal:matrix.orgerahhalYea I see it in your original link21:46:12
@erahhal:matrix.orgerahhalhttps://github.com/NixOS/nixpkgs/pull/344541#issuecomment-241911049421:46:31
@khaneliman:matrix.orgAustin HorstmanMight just need a tweak like https://github.com/nix-community/nixvim/pull/2414 in HM21:47:50
@_oftc___monty__:matrix.org@_oftc___monty__:matrix.org left the room.22:05:55
@khaneliman:matrix.orgAustin HorstmanIt seems like https://github.com/nix-community/home-manager/pull/5976 this works... need teto's input if it's done right22:09:48
@khaneliman:matrix.orgAustin Horstman(I don't use home-manager neovim module, just going off the test passing with the change)22:11:15
@erahhal:matrix.orgerahhal

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:matrix.orgerahhal and setting extraConfig to concattedLuaConfig 22:21:57
@khaneliman:matrix.orgAustin 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:matrix.orgerahhalSure, give me a bit23:20:17
@khaneliman:matrix.orgAustin HorstmanNo rush23:20:24
@erahhal:matrix.orgerahhalYup, works. Thank you!23:46:47
20 Oct 2024
@tumble1999:matrix.orgTumbleDoes home.sessionVariables set environment variables that should show up in `env`08:58:59

Show newer messages


Back to Room ListRoom Version: 6