net-tools: rename from nettools

By being in sync with the pname, it makes it easier to walk back from
the pname that shows in the /nix/store back to the attribute.

This change should not cause any rebuild.
This commit is contained in:
zimbatm
2025-06-11 23:26:42 +02:00
parent 2ab3cba555
commit 39c01d22bf
73 changed files with 145 additions and 144 deletions

View File

@@ -144,7 +144,7 @@ with lib;
systemd.services.digitalocean-set-hostname = mkIf (hostName == "") {
path = [
pkgs.curl
pkgs.nettools
pkgs.net-tools
];
description = "Set hostname provided by Digitalocean";
wantedBy = [ "network.target" ];

View File

@@ -34,7 +34,7 @@ with lib;
${optionalString (config.networking.hostName == "") ''
echo "setting host name..."
if [ -s /etc/ec2-metadata/hostname ]; then
${pkgs.nettools}/bin/hostname $(cat /etc/ec2-metadata/hostname)
${pkgs.net-tools}/bin/hostname $(cat /etc/ec2-metadata/hostname)
fi
''}

View File

@@ -23,7 +23,7 @@ in
environment.systemPackages = with pkgs; [
findutils
iputils
nettools
net-tools
netcat
nfs-utils
rsync

View File

@@ -351,7 +351,7 @@ in
parted
# for hostname
nettools
net-tools
# for pidof
procps
# for useradd, usermod