-
Notifications
You must be signed in to change notification settings - Fork 68
NixOs module: add option to use UWSM #1036
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
base: main
Are you sure you want to change the base?
Conversation
This is mostly adapted from the equivelent nixpgks hyprland option
| binPath = nixpkgs.lib.getExe ( | ||
| pkgs.writeShellScriptBin "niriSession" '' | ||
| exec /run/current-system/sw/bin/niri --session | ||
| '' | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I have in my config, not sure if this is intended behavior or not, but it does work and would simplify this a bit:
| binPath = nixpkgs.lib.getExe ( | |
| pkgs.writeShellScriptBin "niriSession" '' | |
| exec /run/current-system/sw/bin/niri --session | |
| '' | |
| ); | |
| binPath = "/run/current-system/sw/bin/niri -- --session"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised this works, since the -- should come before the compositor command and args1.
Footnotes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems uwsm parses
uwsm start -S -F /run/current-system/sw/bin/niri -- --session and
uwsm start -S -F -- /run/current-system/sw/bin/niri --session
the same way, I guess it could be changed but it doesn't feel like a behavior that should be relied on.
i guess the best would be to add programs.uwsm.waylandCompositors.*.args in nixpkgs
FYI niri started using |
flake.nix
Outdated
| prettyName = "Niri"; | ||
| comment = "Niri compositor managed by UWSM"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| prettyName = "Niri"; | |
| comment = "Niri compositor managed by UWSM"; | |
| prettyName = "niri"; | |
| comment = "niri compositor managed by UWSM"; |
Small nitpick but the "n" isn't meant to be capitalized according to the niri dev.
This is mostly adapted from the equivelent nixpgks hyprland option.
USWM gives better options for delaying start of dependent systemd units (waybar and such). And handles
putting processes in slices.