router: fix unbound restarting on any flake update

This commit is contained in:
chayleaf 2023-06-24 15:04:45 +07:00
parent 2bdc0f1c8c
commit 5211eb8d71
2 changed files with 3 additions and 2 deletions

View file

@ -198,7 +198,6 @@
"original": { "original": {
"owner": "chayleaf", "owner": "chayleaf",
"repo": "nixos-router", "repo": "nixos-router",
"rev": "b28e10ec8d247babd9ff461bb14725e504d3badf",
"type": "github" "type": "github"
} }
}, },

View file

@ -670,7 +670,9 @@ in {
''"${domain}. AAAA ${serverAddress6}"'' ''"${domain}. AAAA ${serverAddress6}"''
]) hosted-domains); ]) hosted-domains);
}; };
python.python-script = toString ./avahi-resolver-v2.py; # normally it would refer to the flake path, but then the service changes on every flake update
# instead, write a new file in nix store
python.python-script = builtins.toFile "avahi-resolver-v2.py" (builtins.readFile ./avahi-resolver-v2.py);
remote-control.control-enable = true; remote-control.control-enable = true;
}; };
}; };