by aaronchall · 4y ago · 0 comments
I decided on NixOS.
The defaults start out locked down. The firewall has only port 22 open, so give your root user a decent password, and immediately set up your user with a public/private key, test it works then turn off root login via ssh and password logins.
NixOS also only installs what you configure, and remove what you don't, so if you like utils that are considered standard, like 'which', be sure to include them in your configuration.
With NixOS I feel like I know exactly what's on my system at any given time, and nothing should be there that I didn't put there by declaring I want it there.
I have my system set up to update daily so it gets security fixes immediately.
I also have a reproducible system built on a functional build tool called Nix. I can replicate the system easily. If I want lockfile level reproducibility (like rust or npm), I can use flakes.
Are there other distributions more focused solely on optimizing security? Maybe, but the core NixOS development are extremely security conscious and I trust them more than any other group of core distribution group.
When I am in an advisory role, with my own reputation at stake, I must always recommend the hard choice known for superior long-run results over the easy thing with fast but inferior long-run results.
Doing the hard but superior thing builds competency in doing the hard but superior thing, which makes it easier to do the hard but superior thing over the long run.
Contrariwise, doing the easy but inferior thing builds competency in doing the easy but inferior thing, which makes it easier to get stuck doing the easy but inferior thing over the long run.
Pardon what may seem like hyperbole, but recommending inferior solutions to others because it's easy feels like, to me, malicious incompetence.