diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index 76f1262506d5..00c0b4049fd0 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -1617,18 +1617,6 @@ in ) ); - systemd.services.domainname = lib.mkIf (cfg.domain != null) { - wantedBy = [ "sysinit.target" ]; - before = [ - "sysinit.target" - "shutdown.target" - ]; - conflicts = [ "shutdown.target" ]; - unitConfig.DefaultDependencies = false; - serviceConfig.ExecStart = ''${pkgs.nettools}/bin/domainname "${cfg.domain}"''; - serviceConfig.Type = "oneshot"; - }; - environment.etc.hostid = mkIf (cfg.hostId != null) { source = hostidFile; }; boot.initrd.systemd.contents."/etc/hostid" = mkIf (cfg.hostId != null) { source = hostidFile; };