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:
@@ -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" ];
|
||||
|
||||
@@ -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
|
||||
''}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ in
|
||||
environment.systemPackages = with pkgs; [
|
||||
findutils
|
||||
iputils
|
||||
nettools
|
||||
net-tools
|
||||
netcat
|
||||
nfs-utils
|
||||
rsync
|
||||
|
||||
@@ -351,7 +351,7 @@ in
|
||||
parted
|
||||
|
||||
# for hostname
|
||||
nettools
|
||||
net-tools
|
||||
# for pidof
|
||||
procps
|
||||
# for useradd, usermod
|
||||
|
||||
Reference in New Issue
Block a user