Day 3 of playing with NixOS
Published: Tuesday, Jan 24, 2023 Last modified: Friday, May 12, 2023
Continuing from First NixOS and again many thanks to Matthew Croughan and to anyone who tunes into my live impromptu NixOS streams upon https://www.youtube.com/@kaihendry/streams
- How do know if your config has drifted?
nixos-rebuild testis slow when.. nothing has changed! (at least five seconds)
- Test roll back
- How is data managed? Is it comparable to Docker volumes?
Different configurations = profiles?
I don’t know how to tell which profile equates to my configuration.nix
Data is in /var
NixOS does use the FHS in this case.
I am not sure if I can expect NixOS to manage the variable (mutable state) directory at all.
How to find configuration of a service
systemctl cat smokeping | grep config ExecStart=/nix/store/mx8dxnbbgw7zhg4fr0fkd8d1bg985qfg-smokeping-2.8.2/bin/smokeping --config=/nix/store/j7njc6iiq1x13kd9i52dm46g856gzxkq-smokeping.conf --nodaemon
The configuration is: