feat: add new device.
This commit is contained in:
parent
f2a2a2e780
commit
9e68a7abdd
29 changed files with 467 additions and 191 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue