Created
September 6, 2023 04:02
-
-
Save Hasnep/46a729b69f5b3d1e2dcaf7ea17f7660b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
users.users.hannes = { | |
isNormalUser = true; | |
extraGroups = ["wheel"]; | |
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFLnJfxLDy7PgM2UJUk2H0TkwTqSuOGUJE9zoGmi8LOm"]; | |
}; | |
services.openssh = { | |
enable = true; | |
settings={ | |
PasswordAuthentication = false; | |
KbdInteractiveAuthentication = false; | |
PermitRootLogin = "yes"; | |
}; | |
}; | |
# Allow wheel group to use sudo without a password | |
security.sudo.wheelNeedsPassword = false; | |
# Enable Tailscale | |
services.tailscale.enable = true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment