From 50df42f0f314ca423ee299b8dc866fc3b189799b Mon Sep 17 00:00:00 2001 From: Amanda Cameron Date: Thu, 25 Feb 2021 14:09:32 -0500 Subject: [PATCH] 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. --- nixos/modules/services/network-filesystems/samba.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/network-filesystems/samba.nix b/nixos/modules/services/network-filesystems/samba.nix index d6e2904b3c3..0125ad2f05a 100644 --- a/nixos/modules/services/network-filesystems/samba.nix +++ b/nixos/modules/services/network-filesystems/samba.nix @@ -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