add default password to server config
This commit is contained in:
parent
970cf4aaac
commit
a7b26a08d1
2 changed files with 19 additions and 11 deletions
|
|
@ -174,8 +174,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.allowedTCPPorts = [ 5909 ];
|
# networking.firewall.allowedTCPPorts = [ 5909 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 5909 ];
|
# networking.firewall.allowedUDPPorts = [ 5909 ];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,16 +60,24 @@
|
||||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.noa = {
|
users.users = {
|
||||||
isNormalUser = true;
|
root = {
|
||||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
openssh.authorizedKeys.keys = [
|
||||||
packages = with pkgs; [
|
|
||||||
firefox
|
|
||||||
tree
|
|
||||||
];
|
|
||||||
openssh.authorizedKeys.keys = [
|
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINWtje7dGqyrBY7PLq6DANvUR6yfungQNsXGkTO6PP6/ noa@NoasPCArch"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINWtje7dGqyrBY7PLq6DANvUR6yfungQNsXGkTO6PP6/ noa@NoasPCArch"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
noa = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||||
|
packages = with pkgs; [
|
||||||
|
firefox
|
||||||
|
tree
|
||||||
|
];
|
||||||
|
openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINWtje7dGqyrBY7PLq6DANvUR6yfungQNsXGkTO6PP6/ noa@NoasPCArch"
|
||||||
|
];
|
||||||
|
hashedPassword = "$y$j9T$Essu0/awyRr6Z8PfSlYod.$B.TZp3vh4t84NAgEhLDJ5E8ESbPao/X8uqrU/E.xxr4";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue