add default password to server config

This commit is contained in:
Noa Aarts 2024-03-15 20:32:22 +01:00
parent 970cf4aaac
commit a7b26a08d1
2 changed files with 19 additions and 11 deletions

View file

@ -174,8 +174,8 @@
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 5909 ];
networking.firewall.allowedUDPPorts = [ 5909 ];
# networking.firewall.allowedTCPPorts = [ 5909 ];
# networking.firewall.allowedUDPPorts = [ 5909 ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;

View file

@ -60,7 +60,13 @@
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Define a user account. Don't forget to set a password with passwd.
users.users.noa = {
users.users = {
root = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINWtje7dGqyrBY7PLq6DANvUR6yfungQNsXGkTO6PP6/ noa@NoasPCArch"
];
};
noa = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
@ -70,6 +76,8 @@
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINWtje7dGqyrBY7PLq6DANvUR6yfungQNsXGkTO6PP6/ noa@NoasPCArch"
];
hashedPassword = "$y$j9T$Essu0/awyRr6Z8PfSlYod.$B.TZp3vh4t84NAgEhLDJ5E8ESbPao/X8uqrU/E.xxr4";
};
};
# Allow unfree packages