about summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorJoseph Stahl <1269177+josephst@users.noreply.github.com>2023-10-28 22:13:25 -0400
committerJoseph Stahl <1269177+josephst@users.noreply.github.com>2023-10-28 22:30:14 -0400
commit137a3c1303104df0f564684b4e8f0c51e14e65e9 (patch)
tree84240bbc451d7bc363da3a837b609d31cd30d9e1 /nixos/modules/tasks
parent16d9fd5a86541e6007081c95c6eb9b615e14b86e (diff)
downloadnixlib-137a3c1303104df0f564684b4e8f0c51e14e65e9.tar
nixlib-137a3c1303104df0f564684b4e8f0c51e14e65e9.tar.gz
nixlib-137a3c1303104df0f564684b4e8f0c51e14e65e9.tar.bz2
nixlib-137a3c1303104df0f564684b4e8f0c51e14e65e9.tar.lz
nixlib-137a3c1303104df0f564684b4e8f0c51e14e65e9.tar.xz
nixlib-137a3c1303104df0f564684b4e8f0c51e14e65e9.tar.zst
nixlib-137a3c1303104df0f564684b4e8f0c51e14e65e9.zip
systemd domainname service - fix missing domainname binary
needs nettools in path
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index a0e8e5d47a60..d976f9951bb5 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -1410,7 +1410,7 @@ in
       wantedBy = [ "sysinit.target" ];
       before = [ "sysinit.target" ];
       unitConfig.DefaultDependencies = false;
-      serviceConfig.ExecStart = ''domainname "${cfg.domain}"'';
+      serviceConfig.ExecStart = ''${pkgs.nettools}/bin/domainname "${cfg.domain}"'';
     };
 
     environment.etc.hostid = mkIf (cfg.hostId != null) { source = hostidFile; };