nixos/samba: Add a wants=network-online.target to the target.

The linked units are all wants=network-online.target and I suspect an issue I've had
where nmbd was only announcing on a 169.x.x.x address is caused by this.
This commit is contained in:
Amanda Cameron 2021-02-25 14:09:32 -05:00
parent b884af7c1d
commit 50df42f0f3

View file

@ -218,6 +218,7 @@ in
targets.samba = {
description = "Samba Server";
after = [ "network.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
};
# Refer to https://github.com/samba-team/samba/tree/master/packaging/systemd