Closed WillPower3309 closed 8 months ago
Is there a workaround to make it work currently?
Is there a workaround to make it work currently?
Hi you can use this config for now
programs.sway = { enable = true; package = (pkgs.swayfx.overrideAttrs (old: { passthru.providedSessions = [ "sway" ]; }));};
it solve the problem for me :)
it worked for me without needing that, is it fixed now?
it worked for me without needing that, is it fixed now?
Were you using home-manager? Looks like it still isn't working
I was, but i also made a test flake without it what version of nixpkgs do you use?
If https://github.com/NixOS/nixpkgs/pull/267261 and https://github.com/NixOS/nixpkgs/pull/267261 are merged, it will be solved
If https://github.com/NixOS/nixpkgs/pull/267261 and https://github.com/NixOS/nixpkgs/pull/267261 are merged, it will be solved
Thanks for getting a fix up on the nix side! I think you may have linked the same PR twice
twice
AIUI, those will fix the issue upstream in nixpkgs, but the flake in this repository still needs to be updated. Don't think much can be done until the dust settles on how sway forks will be used by the nixpkgs module, though.
This should be fixed now since https://github.com/NixOS/nixpkgs/pull/270013 was merged!
EDIT: Oops spoke to soon, still need https://github.com/NixOS/nixpkgs/pull/267261
This should be fixed now since https://github.com/NixOS/nixpkgs/pull/270013 was merged!
EDIT: Oops spoke to soon, still need https://github.com/NixOS/nixpkgs/pull/267261
Thanks a ton for helping out! I'll monitor that pull request
Fixed in https://github.com/NixOS/nixpkgs/pull/273762. Tested in my own config, and setting programs.sway.package = pkgs.swayfx
now correctly wraps the binary, which fixes the session error.
Tested in my own config
idk what you're talking about, hardcoded is still present in the module:
This means that if you export some variable in programs.sway.extraSessionCommands
, for example, it will not appear in your env.
You can override it yourself in the .package option instead.
Anyway the fix is in two parts, one part has merged, the other hasn't.
option instead
I know, but what the reason to use module then?
idk what you're talking about, hardcoded is still present in the module
The change fixed the problem described in this issue. It's true that the module needs a change as well, but that's a different issue imo
Now really resolved with https://github.com/NixOS/nixpkgs/pull/267261 merged 🎉
Big thanks to @kira-bruneau for a great first stab at the issue and getting things organized, and @name-snrl and @quantenzitrone for implementing this in nixpkgs! Happy to announce this is completed :)
I am still encountering this with a newer version of the package ` error: Package, 'swayfx-0.3.2', did not specify any session names, as strings, in 'passthru.providedSessions'. This is required when used as a session package.
The session names can be looked up in:
/nix/store/38j434zdrdzkixp1d81flfrhpzz3y1p1-swayfx-0.3.2/share/xsessions
/nix/store/38j434zdrdzkixp1d81flfrhpzz3y1p1-swayfx-0.3.2/share/wayland-sessions
` the override workaround works but I am curious if this is a regression or am I doing something wrong.
programs.sway = { enable = true; package = pkgs.swayfx; wrapperFeatures.gtk = true; };
Setting
programs.sway.package = pkgs.swayfx
in a Nix config will result in the following error:The swayfx nix package definition should include this session name