Hi!
I often find useful to add some ExecStartPre
(and siblings) commands to existing services, as a way to extend them, perform custom actions, etc.
However, I’m often impeached by existing commands declared like so in their upsteam module:
{ ExecStartPre = "some action"; }
… that prevent any other ExecStartPre
command to be added later.
On the opposite, declaring them this way permits extensibility in personal configurations:
{ ExecStartPre = [ "some action" ]; }
… permitting to add other command lists that will be merged by the nixos module system.
Is there any issue with declaring them always as lists? I can’t figure any.
If not, what would be the better action to address this issue?
- Should I create a tree-wide commit that enforce declarations in brackets?
- Should I create a RFC, to change the nixos systemd module so that it deprecate non-list usage?
Thanks for reading!