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.

  • www-gem@lemmy.mlOP
    link
    fedilink
    arrow-up
    9
    ·
    10 months ago

    Thanks very much. That’s exactly what I needed. I’m still not used to the diversity of NixOS documentation and was not aware of this one.

    • www-gem@lemmy.mlOP
      link
      fedilink
      arrow-up
      5
      ·
      10 months ago

      Just realized that I had this line in my config already but the change was not applied until I reboot. 😳