dnsmasq: make the daemon wait for the nix store to be mounted
This resolves the issue of the daemon not starting because the nix store is not yet mounted Signed-off-by: Wigger Boelens <me@wigger.email>
This commit is contained in:
parent
7cd9aac79e
commit
682de76b1e
1 changed files with 9 additions and 7 deletions
|
|
@ -69,13 +69,15 @@ in
|
|||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
launchd.daemons.dnsmasq = {
|
||||
serviceConfig.ProgramArguments = [
|
||||
"${cfg.package}/bin/dnsmasq"
|
||||
"--listen-address=${cfg.bind}"
|
||||
"--port=${toString cfg.port}"
|
||||
"--keep-in-foreground"
|
||||
] ++ (mapA (domain: addr: "--address=/${domain}/${addr}") cfg.addresses)
|
||||
++ (map (server: "--server=${server}") cfg.servers);
|
||||
command = let
|
||||
args = [
|
||||
"--listen-address=${cfg.bind}"
|
||||
"--port=${toString cfg.port}"
|
||||
"--keep-in-foreground"
|
||||
] ++ (mapA (domain: addr: "--address=/${domain}/${addr}") cfg.addresses)
|
||||
++ (map (server: "--server=${server}") cfg.servers);
|
||||
in
|
||||
"${cfg.package}/bin/dnsmasq ${concatStringsSep " " args}";
|
||||
|
||||
serviceConfig.KeepAlive = true;
|
||||
serviceConfig.RunAtLoad = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue