ssh: fix github known hosts #186

Merged
JakeHillion merged 1 commits from nixify-known-hosts into main 2024-02-06 23:09:18 +00:00
Owner

Using a pkgs.writeText causes an import at evaluation time instead of
just build time. This means that no host running nix flake check can't
check all configurations if you have mixed architectures in a flake.

For some reason I've been getting away with this. This stopped when
switching to nixos-2311. Move the known hosts with a single key into the
NixOS config directly and put the GitHub keys in a real file. These
can't go into .knownHosts directly as it only supports one key per
host (sigh).

Reference: https://github.com/NixOS/nix/issues/4265

Using a pkgs.writeText causes an import at evaluation time instead of just build time. This means that no host running `nix flake check` can't check all configurations if you have mixed architectures in a flake. For some reason I've been getting away with this. This stopped when switching to nixos-2311. Move the known hosts with a single key into the NixOS config directly and put the GitHub keys in a real file. These can't go into `.knownHosts` directly as it only supports one key per host (sigh). Reference: https://github.com/NixOS/nix/issues/4265
JakeHillion force-pushed nixify-known-hosts from 31e6db7587 to 7ab730a62d 2024-02-06 22:10:54 +00:00 Compare
JakeHillion added a new dependency 2024-02-06 22:11:32 +00:00
JakeHillion force-pushed nixify-known-hosts from 7ab730a62d to 432ae6755b 2024-02-06 22:16:49 +00:00 Compare
JakeHillion force-pushed nixify-known-hosts from 432ae6755b to a1e4578ee1 2024-02-06 22:44:48 +00:00 Compare
JakeHillion merged commit a1e4578ee1 into main 2024-02-06 23:09:18 +00:00
JakeHillion deleted branch nixify-known-hosts 2024-02-06 23:09:18 +00:00
Sign in to join this conversation.
No reviewers
No Label
bug
feature
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks
Reference: JakeHillion/nixos#186
No description provided.