-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
add config.services.xserver.windowManager.sway #19663
Conversation
@tg-x, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nbp, @AndersonTorres and @edolstra to be potential reviewers. |
needs wayland-compatible display manager such as SDDM or GDM (tested with SDDM) |
Is this x+wayland? Either way its good progress! |
yes, the display manager still runs on X, this just adds the option to select sway, that would run in a wayland session |
Thanks for the work. Obviously this should not be part of Another thing: I would really appreciate it, if you tested this with gdm 3.22 from #19081 which itself uses wayland instead of X and see if it works. I might give it a shot myself when I find time. |
|
||
{ | ||
options.services.xserver.windowManager = { | ||
sway = swayOption "sway"; |
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.
Why using a function to generate the options?
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 based on i3.nix, sure it does not need the function or mkMerge anymore, could be simplified..
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.
Please do so, that will improve the readability and maintainability of the module.
For the record, i3 module was simplified in #20385.
}; | ||
|
||
config = mkMerge [ | ||
(mkIf wmCfg.sway.enable (swayConfig "sway" pkgs.sway wmCfg.sway)) |
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.
Why using a mkMerge
and a function to generate the config?
I tested this out. I was using slim. Sway started and it even loaded my i3 config and ran i3status without me creating a separate sway config. However, whenever I tried to create a terminal, the process started but it was not visible on the screen. Looking at the process tree in htop I could see all of my terminals and they were all under pid 1. Everything looked normal, I just couldn't see them. |
This is awesome progress! Note that in #21808 sway will be updated, which might result in unexpected things after the merge. I would vote for an |
Can you add a setcap wrapper as described in the README.md using our new setcap wrapper module? |
Is this PR still relevant? |
Relevant yes, up-to-date no. |
This can be closed. It's not longer relevant or up-to-date. |
@colemickens So Sway will not be supported in NixOS? |
@matthew-piziak oh no, I'm sorry I didn't explain more. There is already a Sway package and module in nixpkgs now! |
Weird, if I add Getting a permission error is weird, given that I'm part of the group. If I run |
You're not up to date if you're getting errors about setcap and wlc. See this commit: NixOS/nixpkgs-channels@45004c6 It's in nixos-unstable and I know the change was ported into the 19.03 channel as well. |
Ah, thanks. Unfortunately NVIDIA drivers do not build on 19.03, and sway does not build on 18.09. NVIDIA is more important to me. I haven't figured out how to import program configuration from specific channels (like sway from unstable, for example). I only know how to do it for packages, not programs. I don't suppose you know how to do that? |
|
Oh, and there's no way to use one set of drivers for sway and one for everything else right? Probably a silly question but I really don't know. Prooobably not going to give up the graphics card performance in exchange for this window manager. Thanks for answering my questions! |
Which features are in this PR that aren't on master? If there aren't any, please close this PR. (making an attempt to clean up older PRs) |
I don't see any of these features in master. |
Aren't they on master under |
Yes they are! It makes sense to close then. |
Motivation for this change
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
./result/bin/
)