NixOS-PVE-Deployment-Util/nix-config/users.nix

18 lines
324 B
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
users.users.nixos = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
security.sudo.wheelNeedsPassword = true;
services.openssh = {
enable = true;
settings = {
AllowUsers = ["nixos"];
PasswordAuthentication = true;
PermitRootLogin = "no";
};
};
}