coder-devenv/nixos/configuration.nix

28 lines
704 B
Nix

{ pkgs, ... }:
{
# Basic system settings
networking.hostName = "localhost";
time.timeZone = "Europe/London";
# User configuration
users.users.compey = {
isNormalUser = true;
home = "/home/compey";
extraGroups = [ "wheel" ];
password = "$6$qVioWfelj.mvmSeM$x.scXIyRhimd.Kp2.Yzzqq8gGctYsT1Tfz4Gf14pb3Kgtbjh59PIF62uahzgUP.SdzUkLPm/arMSilpcdsC561";
shell = pkgs.fish;
};
# Create root user
users.users.root.initialHashedPassword = "";
# Enable sudo support
security.sudo.enable = true;
security.sudo.wheelNeedsPassword = false;
# Enable OpenSSH server (optional)
services.openssh.enable = true;
services.openssh.permitRootLogin = "prohibit-password";
}