From 5bf6e5f576fdbd7a7d2d69d6aea1adc6bf16e71b Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sat, 31 Aug 2024 08:00:40 +0800 Subject: [PATCH] hosts: blacksteel -> pek0 --- flake.nix | 4 ++-- home/applications/ssh/default.nix | 4 +++- hosts/{blacksteel => pek0}/Caddyfile | 0 hosts/{blacksteel => pek0}/anti-feature.nix | 0 hosts/{blacksteel => pek0}/default.nix | 2 +- hosts/{blacksteel => pek0}/hardware-configuration.nix | 0 hosts/{blacksteel => pek0}/secrets.yaml | 0 hosts/{blacksteel => pek0}/services/jellyfin.nix | 0 hosts/{blacksteel => pek0}/services/mastodon.nix | 0 hosts/{blacksteel => pek0}/services/matrix.nix | 0 hosts/{blacksteel => pek0}/services/minecraft.nix | 0 hosts/{blacksteel => pek0}/services/samba.nix | 0 hosts/{blacksteel => pek0}/services/transmission.nix | 0 nixos/profiles/core/default.nix | 1 - treefmt.nix | 2 +- 15 files changed, 7 insertions(+), 6 deletions(-) rename hosts/{blacksteel => pek0}/Caddyfile (100%) rename hosts/{blacksteel => pek0}/anti-feature.nix (100%) rename hosts/{blacksteel => pek0}/default.nix (98%) rename hosts/{blacksteel => pek0}/hardware-configuration.nix (100%) rename hosts/{blacksteel => pek0}/secrets.yaml (100%) rename hosts/{blacksteel => pek0}/services/jellyfin.nix (100%) rename hosts/{blacksteel => pek0}/services/mastodon.nix (100%) rename hosts/{blacksteel => pek0}/services/matrix.nix (100%) rename hosts/{blacksteel => pek0}/services/minecraft.nix (100%) rename hosts/{blacksteel => pek0}/services/samba.nix (100%) rename hosts/{blacksteel => pek0}/services/transmission.nix (100%) diff --git a/flake.nix b/flake.nix index 618db15..6b2241c 100644 --- a/flake.nix +++ b/flake.nix @@ -151,8 +151,8 @@ deployment.targetHost = "tyo0.ny4.dev"; }; - "blacksteel" = { - imports = [ ./hosts/blacksteel ]; + "pek0" = { + imports = [ ./hosts/pek0 ]; deployment.targetHost = "blacksteel"; # thru tailscale }; }; diff --git a/home/applications/ssh/default.nix b/home/applications/ssh/default.nix index 139811d..04b130e 100644 --- a/home/applications/ssh/default.nix +++ b/home/applications/ssh/default.nix @@ -11,8 +11,10 @@ }; in { - "blacksteel" = serverConfig; "tyo0.ny4.dev" = serverConfig; + "pek0.ny4.dev" = serverConfig // { + hostname = "blacksteel"; + }; }; }; } diff --git a/hosts/blacksteel/Caddyfile b/hosts/pek0/Caddyfile similarity index 100% rename from hosts/blacksteel/Caddyfile rename to hosts/pek0/Caddyfile diff --git a/hosts/blacksteel/anti-feature.nix b/hosts/pek0/anti-feature.nix similarity index 100% rename from hosts/blacksteel/anti-feature.nix rename to hosts/pek0/anti-feature.nix diff --git a/hosts/blacksteel/default.nix b/hosts/pek0/default.nix similarity index 98% rename from hosts/blacksteel/default.nix rename to hosts/pek0/default.nix index bb40f25..0e10fee 100644 --- a/hosts/blacksteel/default.nix +++ b/hosts/pek0/default.nix @@ -24,7 +24,7 @@ boot.loader.efi.canTouchEfiVariables = true; boot.loader.systemd-boot.enable = true; - networking.hostName = "blacksteel"; + networking.hostName = "pek0"; system.stateVersion = "24.05"; ######## Secrets diff --git a/hosts/blacksteel/hardware-configuration.nix b/hosts/pek0/hardware-configuration.nix similarity index 100% rename from hosts/blacksteel/hardware-configuration.nix rename to hosts/pek0/hardware-configuration.nix diff --git a/hosts/blacksteel/secrets.yaml b/hosts/pek0/secrets.yaml similarity index 100% rename from hosts/blacksteel/secrets.yaml rename to hosts/pek0/secrets.yaml diff --git a/hosts/blacksteel/services/jellyfin.nix b/hosts/pek0/services/jellyfin.nix similarity index 100% rename from hosts/blacksteel/services/jellyfin.nix rename to hosts/pek0/services/jellyfin.nix diff --git a/hosts/blacksteel/services/mastodon.nix b/hosts/pek0/services/mastodon.nix similarity index 100% rename from hosts/blacksteel/services/mastodon.nix rename to hosts/pek0/services/mastodon.nix diff --git a/hosts/blacksteel/services/matrix.nix b/hosts/pek0/services/matrix.nix similarity index 100% rename from hosts/blacksteel/services/matrix.nix rename to hosts/pek0/services/matrix.nix diff --git a/hosts/blacksteel/services/minecraft.nix b/hosts/pek0/services/minecraft.nix similarity index 100% rename from hosts/blacksteel/services/minecraft.nix rename to hosts/pek0/services/minecraft.nix diff --git a/hosts/blacksteel/services/samba.nix b/hosts/pek0/services/samba.nix similarity index 100% rename from hosts/blacksteel/services/samba.nix rename to hosts/pek0/services/samba.nix diff --git a/hosts/blacksteel/services/transmission.nix b/hosts/pek0/services/transmission.nix similarity index 100% rename from hosts/blacksteel/services/transmission.nix rename to hosts/pek0/services/transmission.nix diff --git a/nixos/profiles/core/default.nix b/nixos/profiles/core/default.nix index 27af28b..1519099 100644 --- a/nixos/profiles/core/default.nix +++ b/nixos/profiles/core/default.nix @@ -1,5 +1,4 @@ { - lib, inputs, pkgs, ... diff --git a/treefmt.nix b/treefmt.nix index 3a58d67..e8e1cf9 100644 --- a/treefmt.nix +++ b/treefmt.nix @@ -9,7 +9,7 @@ ### misc programs.prettier.enable = true; settings.formatter.prettier.excludes = [ - "hosts/blacksteel/secrets.yaml" + "hosts/pek0/secrets.yaml" "hosts/tyo0/secrets.yaml" "nixos/profiles/sing-box/secrets.yaml" "nixos/profiles/wireless/secrets.yaml"