-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i3 module: refactor #20385
i3 module: refactor #20385
Conversation
@ericsagnes, thanks for your PR! By analyzing the history of the files in this pull request, we identified @fmthoma, @obadz and @aszlig to be potential reviewers. |
@ericsagnes Although this change simplifies the code a bit, it does not simplify things from a user perspective. The original intention for having a dedicated Is there any possibility to have your refactoring without changing the user interface? |
As a personal preference, I think having extra documentation and using a Non-standard module code is bad for maintainance, and two modules in a single file force the modules to share the same I understand the point of view of making things user friendly, but as Adding some documentation, or an option such as
It is possible to make alias options, or option redirections but I am not sure it is worth as a close term goal is to make window managers use extensible option types, so the main interface will change anyways. Note: This was not clearly stated in the description, but this PR is a cleanup in preparation to use extensible option types for window managers. (replacing every |
I agree with you here.
Can you give an example of a typical configuration after this change? |
I just had a look at #20384 where you do a similar thing for I would wish for some documentation along the lines of »some window managers allow you to use a custom version of the package, like By the way: The Wiki page (https://nixos.org/wiki/I3_Window_Manager) seems to be outdated; is there a place where this content is going to be (or already has been) migrated? |
It is not yet merged, but there is a PR for display managers to use this. #20271 {
services.xserver.windowManager.enable = [ "i3" "xmonad" ];
}
The package option is quite widely used through the modules, not a lot in window managers, but awesome is using it (
There was a dedicated issue for this page (#13269), but it was decided that the content in that wiki page was outdated and not relevant anymore. |
Motivation for this change
Make i3 module simpler.
cc @fmthoma
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)