News for hackers. Stuff that matters.
Re:Ukrainian hackers destroyed the IT infrastructure of Russ... by eptcyka on Wednesday July 16, 2025 @08:15AM (#44581361)
Yeah, I had similar experiences, but now I use nix, which solves these problems.
Re:Ukrainian hackers destroyed the IT infrastructure of Russ... by bilekas on Wednesday July 16, 2025 @08:19AM (#44581408)
> but now I use nix, which solves these problems

Um, sorry but what do you mean ?

Re:Ukrainian hackers destroyed the IT infrastructure of Russ... by eptcyka on Wednesday July 16, 2025 @08:23AM (#44581443)
Everything is configured via nix, I can swap out the hardware and redeploy everything from 0 with a single command invocation.
Re:Ukrainian hackers destroyed the IT infrastructure of Russ... by throwawayffffas on Wednesday July 16, 2025 @09:42AM (#44582299)
What if something happens to where you keep your configuration?
Re:Ukrainian hackers destroyed the IT infrastructure of Russ... by eptcyka on Wednesday July 16, 2025 @12:07PM (#44583858)
It is in git, I have backups. The secrets are not backed up, but those I can recycle if need be.
Re:Ukrainian hackers destroyed the IT infrastructure of Russ... by SoftTalker on Wednesday July 16, 2025 @01:46PM (#44584998)
I don't really know nix, but have used Ansible to try to have all configuration version-controlled and automated. But if there's any possibility of making changes outside of that, you have to be very disciplined. As soon as someone makes a one-off manual change to a crontab or a systemd unit, you're screwed.
Re:Ukrainian hackers destroyed the IT infrastructure of Russ... by eptcyka on Wednesday July 16, 2025 @02:26PM (#44585378)
NixOS just doesn’t let you do that in the nominal case, most of /etc consists of symlinks to a read only partition that is managed by nix - it is actually more difficult to do one-off scripts or config changes via files than it is to do so via nix, at least nominally - there are of course software that has it’s own special config format or that keeps its config in a database - but those get snapshot(ed?) and backed up anyway.

Imo, nix is more finnicky but more of a complete solution than ansible.