Add jalr's ssh keys to root's authorized keys

This commit is contained in:
Jakob Lechner 2024-05-28 20:21:24 +02:00
parent 1d41915773
commit 0f053083da

View file

@ -1,5 +1,10 @@
{ config, pkgs, ... }:
let
sshKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3l+Yixrsjhze20CSjvUK4Qj/BNqbTNitgk20vuzPej cardno:25_750_479"
];
in
{
users.users.jalr = {
isNormalUser = true;
@ -17,11 +22,11 @@
"wireshark"
]; # Enable sudo for the user.
shell = pkgs.fish;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3l+Yixrsjhze20CSjvUK4Qj/BNqbTNitgk20vuzPej cardno:25_750_479"
];
openssh.authorizedKeys.keys = sshKeys;
};
users.users.root.openssh.authorizedKeys.keys = sshKeys;
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;