some wip
This commit is contained in:
18
config/modules/publickeys.nix
Normal file
18
config/modules/publickeys.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ modules, ... }:
|
||||
{
|
||||
# Applys doloro's public keys to the users openssh
|
||||
modules.publicKeys.provides = {
|
||||
doloro =
|
||||
{ user, host, ... }:
|
||||
{
|
||||
nixos = {
|
||||
users.users.${user.userName} = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE/4h+WCBBW82puv8SMdUbkWymF4amEMuZitgFztB6oZ" # laptop pub key
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBaa6Z5qtBSLEz+A4fQGYPfkOISsRQlmKkVbcx2zxML7" # pc pub key
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user