I was trying to debug whether a helper I wrote for systemd services was correctly placing environment into the systemd.services.<the-thing>.environment.
Naively I thought I could simply do nix eval --json .#nixosConfigurations.the-system.config.systemd.services.the-thing, however, this errors with error: The option systemd.services.the-thing.startLimitBurst'was accessed but has no value defined. Try setting the option..
Adding .environment explicitly works, however, I was wondering whether:
- Is this the correct way to inspect the correctness of a configuration, w.r.t., is that what is really going to be applied
- Is this the “right”/canonical way of doing this?
- Why do I get this startLimitBurst issue? This gave me the feeling of I am maybe doing something wrong.
- Probably very much unrelated but I was wondering how modular services will play into this in the future.
I get the same behaviour when I am not using my helper therefore I did not include it here, because it did not make any difference.
kind regards in advance.