services = {
syncthing = {
enable = true;
guiAddress = "127.0.0.1:8384";
};
};
It is getting installed and can be run manually. But it’s not getting installed as service that is started at boot
services = {
syncthing = {
enable = true;
guiAddress = "127.0.0.1:8384";
};
};
It is getting installed and can be run manually. But it’s not getting installed as service that is started at boot
Maybe you need to loginctl enable-linger <your user>
Systemd user services are only started with the user session otherwise.
tried this, but the following error occurred Failed to connect to bus: No such file or directory
also, I tried same with Ubuntu WSL, Syncthing starts automatically. Do we have to setup some extra stuff for systemd to work in Debian WSL?
Ah sorry completely missed the WSL part.
Probably this bug `systemd` doesn't create user (d)bus · Issue #8842 · microsoft/WSL · GitHub but I haven’t really used WSL in a while.
Given the Failed to connect to bus
error, is systemd
running? home-manager services are just a pretty format for systemd services.
How to enable systemd on WSL: Systemd support is now available in WSL! - Windows Command Line