🚀 add ssh authorized keys

dev-docs
Moritz Böhme 2022-02-15 17:24:05 +01:00
parent fb398e001a
commit 5aa2803627
No known key found for this signature in database
GPG Key ID: 213820E2795F5CF5
2 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
imports = [ ./bin ./adb.nix ./direnv.nix ./git.nix ./nix.nix ./zsh.nix ]; imports =
[ ./bin ./adb.nix ./direnv.nix ./git.nix ./nix.nix ./ssh.nix ./zsh.nix ];
home-manager.users.moritz = { home-manager.users.moritz = {
home.packages = with pkgs; [ home.packages = with pkgs; [
# archives # archives

7
modules/cli/ssh.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
users.users.moritz.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGoAqa2m7hIzZ2LS96Z+RCIlRvhBM/j7h27tMBCwMT+a moritz@nixos-laptop"
];
}