mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
feat(canokey): enroll new CanoKeys and retire per-host SSH keys (#524)
Hosts now accept only the two CanoKeys' resident SSH keys for ryan, plus the romantic recovery key for root; per-host user keys stop working. Darwin builds work again: the shared base no longer sets nixpkgs.config next to nix-darwin's nixpkgs.pkgs. Assisted-by: DeepSeek Harness (claude-opus-5-5) Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
96fc0e3502
commit
0dcbbb02e9
11 files changed
+204
-153
No files matched your search
@@ -0,0 +1,11 @@
|
||||
{
|
||||
lib,
|
||||
outputs,
|
||||
}:
|
||||
let
|
||||
hostsNames = builtins.attrNames outputs.darwinConfigurations;
|
||||
# nix-darwin passes an external instance through `nixpkgs.pkgs`, and nixpkgs
|
||||
# asserts that `nixpkgs.config` stays empty in that case.
|
||||
expected = lib.genAttrs hostsNames (_: true);
|
||||
in
|
||||
expected
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
outputs,
|
||||
}:
|
||||
lib.genAttrs (builtins.attrNames outputs.darwinConfigurations) (
|
||||
name: outputs.darwinConfigurations.${name}.config.nixpkgs.config == { }
|
||||
)
|
||||
Reference in new issue
Block a user