Fix hostnames by removing string context

This commit is contained in:
SebastianStork 2026-02-08 21:22:26 +01:00
parent 41ed609dc0
commit ae5e7e8040
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -10,7 +10,9 @@ let
inputs.nixpkgs.lib.nixosSystem { inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs self; }; specialArgs = { inherit inputs self; };
modules = modules =
(lib.singleton { networking.hostName = lib.baseNameOf hostDir; }) (lib.singleton {
networking.hostName = hostDir |> lib.baseNameOf |> lib.unsafeDiscardStringContext;
})
++ ( ++ (
hostDir hostDir
|> builtins.readDir |> builtins.readDir