feat: add new device.

This commit is contained in:
CronyAkatsuki 2025-09-24 16:10:33 +02:00
parent f2a2a2e780
commit 9e68a7abdd
29 changed files with 467 additions and 191 deletions

View file

@ -2,7 +2,11 @@
config,
lib,
...
}: {
}: let
default_keys = map (e: e.path) (
lib.filter (e: e.type == "rsa" || e.type == "ed25519") config.services.openssh.hostKeys
);
in {
options = {
crony.secrets.enable = lib.mkEnableOption "Enable desktop secrets.";
};
@ -22,7 +26,7 @@
file = ../../../secrets/root-passwd.age;
};
};
identityPaths = ["/home/crony/.ssh/main" "/root/.ssh/id_ed25519"];
identityPaths = ["/home/crony/.ssh/main" "/root/.ssh/id_ed25519"] ++ default_keys;
};
};
}