From 8ee5e9dd3e1e96e88eb7f0843ad0c3f8ca52535e Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sun, 11 Feb 2024 22:10:03 +0800 Subject: [PATCH] hosts: rename hostnames to lowercase - Following RFC 952 and RFC 1123. Hostnames are not case-sensitive; however, uppercase letters were typically avoided to enhance readability. - I accidentally rm -rf'ed ./git, had to re-commit everything --- flake.nix | 4 ++-- hosts/{Aristotle => aristotle}/anti-feature.nix | 0 hosts/{Aristotle => aristotle}/default.nix | 2 +- hosts/{Aristotle => aristotle}/hardware-configuration.nix | 0 hosts/{Plato => plato}/default.nix | 2 +- hosts/{Plato => plato}/hardware-configuration.nix | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename hosts/{Aristotle => aristotle}/anti-feature.nix (100%) rename hosts/{Aristotle => aristotle}/default.nix (94%) rename hosts/{Aristotle => aristotle}/hardware-configuration.nix (100%) rename hosts/{Plato => plato}/default.nix (88%) rename hosts/{Plato => plato}/hardware-configuration.nix (100%) diff --git a/flake.nix b/flake.nix index e4b5a1a..7de637a 100755 --- a/flake.nix +++ b/flake.nix @@ -141,12 +141,12 @@ ### NixOS nixosConfigurations = { - "Aristotle" = mkNixOS "x86_64-linux" [./hosts/Aristotle]; + "aristotle" = mkNixOS "x86_64-linux" [./hosts/aristotle]; }; ### Darwin darwinConfigurations = { - "Plato" = mkDarwin "x86_64-darwin" [./hosts/Plato]; + "plato" = mkDarwin "x86_64-darwin" [./hosts/plato]; }; }; } diff --git a/hosts/Aristotle/anti-feature.nix b/hosts/aristotle/anti-feature.nix similarity index 100% rename from hosts/Aristotle/anti-feature.nix rename to hosts/aristotle/anti-feature.nix diff --git a/hosts/Aristotle/default.nix b/hosts/aristotle/default.nix similarity index 94% rename from hosts/Aristotle/default.nix rename to hosts/aristotle/default.nix index 699a42f..8add9bc 100644 --- a/hosts/Aristotle/default.nix +++ b/hosts/aristotle/default.nix @@ -15,7 +15,7 @@ ../../nixos/profiles/common/opt-in/disko.nix ]; - networking.hostName = "Aristotle"; + networking.hostName = "aristotle"; time.timeZone = "Asia/Shanghai"; _module.args.disks = ["/dev/nvme0n1"]; # Disko } diff --git a/hosts/Aristotle/hardware-configuration.nix b/hosts/aristotle/hardware-configuration.nix similarity index 100% rename from hosts/Aristotle/hardware-configuration.nix rename to hosts/aristotle/hardware-configuration.nix diff --git a/hosts/Plato/default.nix b/hosts/plato/default.nix similarity index 88% rename from hosts/Plato/default.nix rename to hosts/plato/default.nix index 83689d0..a80a176 100644 --- a/hosts/Plato/default.nix +++ b/hosts/plato/default.nix @@ -7,7 +7,7 @@ ./hardware-configuration.nix ]; - networking.hostName = "Plato"; + networking.hostName = "plato"; time.timeZone = "Asia/Shanghai"; system.stateVersion = 4; } diff --git a/hosts/Plato/hardware-configuration.nix b/hosts/plato/hardware-configuration.nix similarity index 100% rename from hosts/Plato/hardware-configuration.nix rename to hosts/plato/hardware-configuration.nix