diff options
| author | Joe Mou <dev@mou.fo> | 2023-09-19 23:42:04 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2023-09-19 23:42:04 -0400 |
| commit | 320c2ef450d94b4fd4c163295c528ee6dd3cee64 (patch) | |
| tree | 40a86d3a7a97d6eb2f2522c209ed5dbec4e8a82c /hostnix | |
| parent | 79b49415f86d575d04e3ad670efcaa2b3f42823d (diff) | |
minimal remote login
Diffstat (limited to 'hostnix')
| -rw-r--r-- | hostnix/weebnix/configuration.nix | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/hostnix/weebnix/configuration.nix b/hostnix/weebnix/configuration.nix index 9d490e1..b6cf54a 100644 --- a/hostnix/weebnix/configuration.nix +++ b/hostnix/weebnix/configuration.nix @@ -54,22 +54,26 @@ # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; - # Define a user account. Don't forget to set a password with ‘passwd’. - # users.users.alice = { - # isNormalUser = true; - # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + security.sudo.wheelNeedsPassword = false; + + users.users.joe = { + isNormalUser = true; + extraGroups = [ "wheel" ]; + openssh.authorizedKeys.keys = [ + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDHcqQDnH0LcUWFV+cd9aABfM55+72UAn1ZY5x5bHwPL4IEgT1nagbi1X3FwCJkh2rEcDsHl4FflcNfh+IyU2VyuQfRIXl7CKP040ovXmPVzgU8JiEDrrRebpZ7aHCKk+4Q6cJ8dzAI1sRogVyYrV0hLB4yeMnVexkIcsQMt5pXQ1zodlzHfW1W7OWQDbKjIyh4pv1KJ/IIjiBIt7l+OCqi7wZK4ubmxyMhmZx1xpRC5mz2/29Mpt+1VgCmxC7Hv1SG7yu+U0s4eJ3kbzFKNcZ/bCYqFxK48dT66qhS3qZFg09omumG8IbEUcx+WqM1V7WhiJYig9x5ovmMToQXTJ5uxLtcovnxO/53IgwV7INvmr8+NhD+LlkQfSjjUAW09bhVj9sKIW2bbrIxlOT8z6CQY9zGXNXi8u1oxPt3Q7d3rMxoWhWnr2l3Ok7OIkWooOK3e0NdhgIAxZKlYJAmIYaX391sGTyiuwUy96mg5JcYsLYMfkEg/Sv+2vQp8kkvB0E= joe@sparky" + ]; # packages = with pkgs; [ # firefox # tree # ]; - # }; + }; # List packages installed in system profile. To search, run: # $ nix search wget - # environment.systemPackages = with pkgs; [ - # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. + environment.systemPackages = with pkgs; [ + vim # wget - # ]; + ]; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. @@ -82,7 +86,7 @@ # List services that you want to enable: # Enable the OpenSSH daemon. - # services.openssh.enable = true; + services.openssh.enable = true; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; @@ -104,4 +108,3 @@ system.stateVersion = "23.05"; # Did you read the comment? } - |
