🚸 [shared] Added public SSH keys for androids
This commit is contained in:
@ -2,12 +2,14 @@
|
||||
{
|
||||
systemConfig,
|
||||
systems,
|
||||
otherSystems,
|
||||
common,
|
||||
...
|
||||
}:
|
||||
with builtins;
|
||||
let
|
||||
domain = "dns.${common.domain}";
|
||||
allSystems = otherSystems ++ systems;
|
||||
in
|
||||
{
|
||||
programs.ssh.knownHosts = listToAttrs (
|
||||
@ -19,9 +21,9 @@ in
|
||||
];
|
||||
publicKey = system.ssh.publicKey;
|
||||
};
|
||||
}) systems
|
||||
}) allSystems
|
||||
);
|
||||
users.users.${systemConfig.username}.openssh.authorizedKeys.keys = (
|
||||
map (system: system.ssh.publicKey) systems
|
||||
map (system: system.ssh.publicKey) allSystems
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user