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
$ sudo nixos-rebuild switch
building Nix...
building the system configuration...
error: The option `environment.variables.PATH' is defined multiple times while it's expected to be unique.
Definition values:
- In `/nix/var/nix/profiles/per-user/root/channels/nixos-wsl/modules/systemd/native':
[
"$PATH"
]
- In `/nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/config/shells-environment.nix': "/mnt/c/users/alexca14/bin"
Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.
(use '--show-trace' to show detailed location information)
alrunner4
changed the title
Use of wsl.environment.sessionVariables.PATH interferes with system rebuild
Use of lib.environment.sessionVariables.PATH interferes with system rebuild
May 10, 2024
alrunner4
changed the title
Use of lib.environment.sessionVariables.PATH interferes with system rebuild
Use of environment.sessionVariables.PATH interferes with system rebuild
May 10, 2024
Bug description
Use of
environment.sessionVariables
to setPATH
causes system reconfiguration to fail.Maybe this isn't the right way to configure
PATH
any more and this isn't really a bug, but it's not listed in the configuration documentation.To Reproduce
Logs
WSL version
The text was updated successfully, but these errors were encountered: