Skip to content

Instantly share code, notes, and snippets.

@Hasnep
Created September 6, 2023 04:02
Show Gist options
  • Save Hasnep/46a729b69f5b3d1e2dcaf7ea17f7660b to your computer and use it in GitHub Desktop.
Save Hasnep/46a729b69f5b3d1e2dcaf7ea17f7660b to your computer and use it in GitHub Desktop.
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