-
-
Notifications
You must be signed in to change notification settings - Fork 154
Systemctl with user flag don't work #375
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingwontfixThis will not be worked onThis will not be worked on
Description
Bug description
Using any commands of systemctl with the --user flag like systemctl list-unit-files --user --state=enabled with systemd native support activate gives the error: Failed to connect to bus: No such file or directory
To Reproduce
Steps to reproduce the behavior:
- Activate native systemd adding
wsl.nativeSystemd = true;to /etc/nixos/configuration.nix - Run
systemctl list-unit-files --user --state=enabled
Expected behavior
The command execute without errors.
In the example command it should display all units.
Logs
Similar to #165 doing systemctl list-unit-files --user --state=enabled with native systemd support turned off works perfectly:
UNIT FILE STATE PRESET
emacs.service enabled enabled
nixos-activation.service enabled enabled
dbus.socket enabled enabled
gpg-agent-ssh.socket enabled enabled
gpg-agent.socket enabled enabled
5 unit files listed.
While with native systemd support turned off errors:
Failed to connect to bus: No such file or directory
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwontfixThis will not be worked onThis will not be worked on