mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 15:46:34 +01:00
Add ssh key
This commit is contained in:
parent
4ca736ec91
commit
d45156b4ee
2 changed files with 10 additions and 5 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue