4 ms·
> programs are sometimes patched to look for configs in nonstandard locations generated by Nix This may be true, but typically the NixOS module will specify th
by jbboehr 6y ago
> programs are sometimes patched to look for configs in nonstandard locations generated by Nix
This may be true, but typically the NixOS module will specify the generated config file via the command line [0] or symlink the generated config to the default location in /etc [1]. I don't believe it's terribly common to patch programs to have different config file paths in nixpkgs.
If you're just using plain Nix on a foreign distro, and not, say, home-manager or similar, it's up to you to provide your own configuration including service units. Presumably you could use Nix for this as well, but I'm not terribly familiar with using Nix on foreign distros.
[0]: https://github.com/NixOS/nixpkgs/blob/de493bd74921139860624e82ebe559d46f346632/nixos/modules/services/networking/bind.nix#L197 https://github.com/NixOS/nixpkgs/blob/de493bd74921139860624e...
[1]: https://github.com/NixOS/nixpkgs/blob/de493bd74921139860624e82ebe559d46f346632/nixos/modules/programs/ssh.nix#L223 https://github.com/NixOS/nixpkgs/blob/de493bd74921139860624e...