[Nix-dev] [NixOS] How to incorporate my Bash script in configuration.nix?

Peter Hoeg peter at hoeg.com
Tue May 9 17:14:58 CEST 2017


Hi,

>I would have gone to systemd.services. Slightly uglier looking (bigger
>attrset), but should run after the kernel has loaded its modules. I'd
>say it would be ideal to have it be "PartOf = networking.target"
>and/or "Before = dhcpd.service" (or whatever networking thingy you
>use).

Actually, that will not do the trick either if the device isn't plugged
in yet.

The proper way to do this is to set up modaliases

/Peter


More information about the nix-dev mailing list