mirror of
https://github.com/librephoenix/nixos-config
synced 2025-09-10 15:04:03 +05:30
adjusting scripts to my own user
This commit is contained in:
parent
ef32ac7a28
commit
0faf6690a6
32 changed files with 2252 additions and 12 deletions
15
.my_old_dotfiles/system/security/sshd.nix
Normal file
15
.my_old_dotfiles/system/security/sshd.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ userSettings, authorizedKeys ? [], ... }:
|
||||
|
||||
{
|
||||
# Enable incoming ssh
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
users.users.${userSettings.username}.openssh.authorizedKeys.keys = authorizedKeys;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue