Merge pull request #264082 from josephst/systemd-domainname

systemd domainname unit - use nix store path of `net tools` for `domainname`
This commit is contained in:
nikstur 2023-10-29 10:35:04 +01:00 committed by GitHub
commit 7cb1ab909a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; };