Hello,
I’m experiencing with NixOS and would like to know what would be the nicest way to add a specific line to a system file.
As an example, how would you configure NixOS so the line
auth sufficient pam_fprintd.so
is added to the /etc/pam.d/doas file?
As a bonus, it would be nice to know how to change an option (and not add an entire line) to a system file for which there is no NixOS default extraConfig/extraRules support for.
This would allow me to add this line or not depending on the machine NixOS will be installed on.
Thanks in advance for your suggestions.
Although they’re not in the search, they are in the manual so you can find them searching that page. This one is listed as,
But it does take some inferences to find this, and to realize that you can put
doas
in place of ``No, that one is in the search as well. It’s a normal option. https://search.nixos.org/options?show=security.pam.services.<name>.fprintAuth
What isn’t and also isn’t in the manual is the
rules
options. Those are all internal.As I said I’ve actually done it before asking… But I didn’t reboot and and that was needed for the change to take effect ¯\_(ツ)_/¯