NixOS Intrigue

Day 3 of playing with NixOS

Published: Tuesday, Jan 24, 2023 Last modified: Sunday, Jan 29, 2023

Continuing from First NixOS and again many thanks to Matthew Croughan and to anyone who tunes into my live impromptu NixOS streams upon


Different configurations = profiles?

ls /nix/var/nix/profiles

I don’t know how to tell which profile equates to my configuration.nix

TODO profiles


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

Not easy!

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:


TODO secrets