Some time ago I wanted to clean up home directory files permissions to be not readable by group or others. Instead of just removing group/other permissions I hard-set all directories to 700 and all files to 600.
Took quite some time to repair not working scripts and “application containers”.
Well I nuked myself with chmod -r on my home directory this morning… My day is now dedicated to reinstalling nixos on my laptop… Glad I didn’t do this on a production server…
Will be extra cautious now with the -r commands
PS: I now see the need of timeshift despite of using nixos… I could have backed up my home dir… And restore the prev state
Some time ago I wanted to clean up home directory files permissions to be not readable by group or others. Instead of just removing group/other permissions I hard-set all directories to 700 and all files to 600.
Took quite some time to repair not working scripts and “application containers”.
Well I nuked myself with chmod -r on my home directory this morning… My day is now dedicated to reinstalling nixos on my laptop… Glad I didn’t do this on a production server…
Will be extra cautious now with the -r commands
PS: I now see the need of timeshift despite of using nixos… I could have backed up my home dir… And restore the prev state
Imagine accidentally running it on / instead …
But wasn’t NixOS not specifically design to be protected against such issues?
😂 heck no! (Just found out)
Nix provides a platform where you define how the system should be by specifying what version of apps to install, and configurations to inherit.
It does not back up any configuration and files that are outside the defined configuration file! And Turns out there are plenty of them.
What, You changed into dark theme on your android studio? Stored on home dir .local, not on nix configuration file
Every app that I customized it whilst inside the app, the changes are thrown on .local.
Again… TIMESHIFT would have saved me sooo much time.
This is me Sangry now
Edit: I hope this post saves someone a world of pain in the future
I just did this to both Ubuntu and Arch in a matter of days.
Why not just chmod +r