Hacker News new | ask | show | jobs
by heywoodlh 1475 days ago
*Disclaimer: I'm not trying to be rude with my question, please forgive any perceived negative tone -- I am just curious.

> I recently tried to set up an SSH server on NixOS and gave up after a day. And I love NixOS.

Setting up OpenSSH is one of the more trivial tasks on any Unix-like operating system. So I'm curious as to why you "love" NixOS despite it sounding like you aren't comfortable with (at least what I consider) a very trivial system setting change?

If you add the following to your configuration.nix and rebuild your system this will setup OpenSSH:

``` services.openssh.enable = true; ```

And if you have enabled the firewall you can make sure that port 22 is allowed with this:

``` networking.firewall.allowedTCPPorts = [ 22 ]; ```

And then just rebuild your system.

Being unable to enable SSH on NixOS sounds more of like a lack of understanding of how to use NixOS. Again, I'm exceedingly curious as to why you love NixOS but are unable to make such a trivial change to your system? Did you actually install NixOS on your system?

I am a huge fan of people at any stage of expertise loving NixOS and playing with it and I apologize if this question sounds like me being a dick or trying to police your experience -- please continue to love NixOS!