diff --git a/modules/tasks/network-interfaces.nix b/modules/tasks/network-interfaces.nix index 95cc5041765..d2268e47b01 100644 --- a/modules/tasks/network-interfaces.nix +++ b/modules/tasks/network-interfaces.nix @@ -179,7 +179,7 @@ in # Run any user-specified commands. ${pkgs.stdenv.shell} ${pkgs.writeText "local-net-cmds" cfg.localCommands} || true - ${optionalString (cfg.interfaces != [] && cfg.localCommands != "") '' + ${optionalString (cfg.interfaces != [] || cfg.localCommands != "") '' # Emit the ip-up event (e.g. to start ntpd). initctl emit -n ip-up ''}