Conversation
b6ffcad to
b3f27a2
Compare
|
This is a draft until #1797 is addressed, as it would be cleaner to add extension paths to XDG_DATA_DIRS instead of symlinking directories. |
|
I agree, glad we came to the same conclusion, other than that I think this should be good to go. |
|
Can you please explain why you install the extensions to |
|
Now that #1797 is merged we can do the change to rely on the XDG_DATA_DIRS instead of the symlinking and then I think we can get this merged as well. @piegamesde a bit delayed answer. It only holds true if the XDG_DATA_DIRS includes the path where the packages are installed. This was not the case for non-NixOS before (at least for Wayland, that didn’t get the environment from home session variables correctly). Hence the comment above about waiting for that support so we don’t have to symlink anymore. |
|
I have the updated module ready, just waiting on #2001 so we can properly test. |
|
Updated; running this now on my system, and extensions are loading correctly. |
|
What's the deal with the |
|
@piegamesde There isn't always a 1:1 correspondence between package and extension; for example, the |
|
Oh, I see. How would using Also, what about enabling extensions that are not managed through home-manager? I think this is a use case that should be supported. Wouldn't the current implementation simply disable all non-managed extensions? One could probably work around this by passing a dummy (empty) |
Correct.
I'm conflicted as to whether we should support this use case; if you have non-nix-managed shell extensions, you should probably not configure extensions with home-manager. If you really want to make extensions break when generating a new config without also having those extensions installed manually, you can use: {
dconf.settings."org/gnome/shell".enabled-extensions = [ "additional-extension-uuid" "another-extension-uuid" ];
}That will work with or without this module enabled, at the cost of you having to populate |
|
Moving back to draft; turns out that I still had extensions linked in |
|
I can't figure out what is resetting |
|
I'm sorry for the inconvenience, but I fear this PR should best be blocked on NixOS/nixpkgs#124315. Things are a bit moving around right now in nixpkgs, and this also affects the |
Sounds fair. |
|
The nixpkgs PR has now been merged, but I guess it still makes sense to support both I guess we could do something similar here? One note is that you get a quite confusing error message for those packages that don't have a The error message you get is this: |
|
Hi, is there any interest in rebasing the work on the latest changes? |
|
Thank you for your contribution! I marked this pull request as stale due to inactivity. If this remains inactive for another 7 days, I will close this PR. Please read the relevant sections below before commenting. If you are the original author of the PR
If you are not the original author of the issue
|
|
I can try to open a new PR with rebase, when I have time |
|
Ping us in here when you do. |
|
@piegamesde Finally got around to do this now, see #2843 Sorry for the delay. |
Description
Fixes #284.
Adds
programs.gnome-shellfor customizing Gnome Shell extensions and theme.Checklist
Change is backwards compatible.
Code formatted with
./format.Code tested through
nix-shell --pure tests -A run.all.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS.