Add ssh key

This commit is contained in:
Johannes Jöns 2023-04-05 09:19:06 +02:00
parent 4ca736ec91
commit d45156b4ee
2 changed files with 10 additions and 5 deletions

View file

@ -10,10 +10,13 @@ in
};
config = mkIf cfg.enable {
services.openssh.enable = true;
services.openssh.settings.X11forwarding = true;
services.openssh.settings.PermitRootLogin = "yes";
services.openssh = {
enable = true;
passwordAuthentication = false;
kbdInteractiveAuthentication = false;
settings.X11forwarding = true;
settings.PermitRootLogin = "yes";
}
environment.systemPackages = with pkgs; [ sshfs ];
};
}

View file

@ -15,11 +15,13 @@ in
isNormalUser = true;
description = "jopejoe1 🚫";
#initialPassword = "password";
#openssh.authorizedKeys.keys = [];
extraGroups = [ "wheel"]
++ lib.optionals config.custom.hardware.printing.enable [ "scanner" "lp"]
++ lib.optional config.networking.networkmanager.enable "networkmanger";
packages = with pkgs; [ git kate libsForQt5.ark element-desktop ];
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCUWMJyy2qq2aacVv/J5raugh7UKEmCs+JpagQh30mYqwLV9YQtOfZ+A3Q1qOOLPHTTciLydsfz8K2jBGXEv49uqz9P33aw63RzSaLdcnXhBJRmZvJ3AujLBKDIo24PLOVasogtu01eyQALTg4npX+qlti2UsxLY5O8E5paFJvJ+5rGE3/34c4xA9xthUm7G7SCSt4AhVXwPGB1tqz1KLqGdTJQhvy80laEDSV4tAYpiabmjhNFKGpf8T7afnw1MzKXz+ba6exBcGaJfy2Q24DLztZsW7fsTE1iCdkbcmos9/jUR6NooKFgDr0M4CL2TVZB5pECSiOev06GMnLt+vpxjFL29YeGMaVMmNCedkL1z1mftbXLEL7934kEK9FpEpSwzbRTJ7iPvfYZuTHiT6fi2Ep7n+zzRS+/ZgDUDLSqZYEBmE4dO4LgcqzOsJo5EgoyLGoqQ4OpvPRY12T3rCWUfEgOCXgToF0WlUyxCaPZCfvUjM4LXNlIy/dtivMxMs8= jopejoe1@yokai"
];
};
};
}