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"