summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authornikstur <nikstur@outlook.com>2023-10-29 10:35:04 +0100
committerGitHub <noreply@github.com>2023-10-29 10:35:04 +0100
commit7cb1ab909a96c7cd67e1403b6b8b075a538211c5 (patch)
tree3af672a4aa6334d9f26b8aed4cc3a519513d2814 /nixos
parent7484c3dd1ad8c29f4ad3c120c3f356f8e60b45ff (diff)
parent137a3c1303104df0f564684b4e8f0c51e14e65e9 (diff)
Merge pull request #264082 from josephst/systemd-domainname
systemd domainname unit - use nix store path of `net tools` for `domainname` 
Diffstat (limited to 'nixos')
-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 a0e8e5d47a604..d976f9951bb55 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; };