You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a programs.sway with custom configurations at nixos level, and you put a package = null to use the os level package, it cannot validates the configuration since it will wrongly use pkgs.sway and not the nixos defined one.
To reproduce, you can have this in your nixos configuration.nix file:
- Implicitly disable checkConfig when `cfg.package = null` as we don’t
have any exe to use for the check
- Implicitly disable `swaymsg reload` on activation, since we have no
exe to use for running it
See nix-community#5307
amarshall
added a commit
to amarshall/home-manager
that referenced
this issue
Apr 20, 2024
- Implicitly disable checkConfig when `cfg.package = null` as we don’t
have any exe to use for the check
- Implicitly disable `swaymsg reload` on activation, since we have no
exe to use for running it
See nix-community#5307
Fix: Use correctly the sway coming from the nixos configuration itself
It’s not possible for Home Manager to do this itself, you need to do it in NixOS config with e.g. in your NixOS config home-manager.sharedModules = [{ programs.sway.package = …; }];. This is assuming you’re building HM config via the HM NixOS module.
I do think that HM should probably not implicitly turn package = null into pkgs.sway for select things; here’s a PR for that (not tested too much, please try it out).
Are you following the right branch?
Is there an existing issue for this?
Issue description
With the changes inside this commit: 3a43534
If you have a programs.sway with custom configurations at nixos level, and you put a
package = null
to use the os level package, it cannot validates the configuration since it will wrongly usepkgs.sway
and not the nixos defined one.To reproduce, you can have this in your nixos configuration.nix file:
and if on your home you put this:
The configuration will fail if you use SwayFX settings, like "blur" and stuff.
Workaround : set
checkConfig = false;
.Fix : Use correctly the sway coming from the nixos configuration itself.
Maintainer CC
@amarshall @rycee
System information
The text was updated successfully, but these errors were encountered: