From ae5e7e80400d5768c43b1988af90c7478b26fdc4 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sun, 8 Feb 2026 21:22:26 +0100 Subject: [PATCH] Fix hostnames by removing string context --- flake-parts/hosts.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake-parts/hosts.nix b/flake-parts/hosts.nix index 1c8fd1b..cf0d0bb 100644 --- a/flake-parts/hosts.nix +++ b/flake-parts/hosts.nix @@ -10,7 +10,9 @@ let inputs.nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs self; }; modules = - (lib.singleton { networking.hostName = lib.baseNameOf hostDir; }) + (lib.singleton { + networking.hostName = hostDir |> lib.baseNameOf |> lib.unsafeDiscardStringContext; + }) ++ ( hostDir |> builtins.readDir