Compare commits

..

1 commit

Author SHA1 Message Date
e01ecb8f1b
feat(renovate): enable lockFileMaintenance
Some checks failed
/ build (push) Successful in 2s
/ check (push) Failing after 34s
/ report-size (push) Successful in 8s
This allows it to update the flake.lock and Cargo.lock files.

Also switch from a flake ref to a github ref as renovate cannot resolve
flake refs.
2024-12-29 17:43:33 +01:00

View file

@ -6,6 +6,7 @@
checks =
let
testDomain = "webnstest.example";
dynamicZonesDir = "/var/lib/named/zones";
zoneFile = pkgs.writeText "${testDomain}.zoneinfo" ''
$ORIGIN .
$TTL 60 ; 1 minute
@ -26,14 +27,7 @@
nsupdate IN AAAA ::1
'';
webnsupdate-machine =
{ config, ... }:
let
bindCfg = config.services.bind;
bindData = bindCfg.directory;
dynamicZonesDir = "${bindData}/zones";
in
{
webnsupdate-machine = {
imports = [ self.nixosModules.webnsupdate ];
config = {
@ -77,8 +71,9 @@
# shellcheck disable=SC2211,SC1127
rm -f ${dynamicZonesDir}/* # reset dynamic zones
mkdir -m 0755 -p ${dynamicZonesDir}
chown named ${dynamicZonesDir}
${pkgs.coreutils}/bin/mkdir -m 0755 -p ${dynamicZonesDir}
chown "named" ${dynamicZonesDir}
chown "named" /var/lib/named
# copy dynamic zone's file to the dynamic zones dir
cp ${zoneFile} ${dynamicZonesDir}/${testDomain}
@ -92,7 +87,6 @@
nodes.machine = webnsupdate-machine;
testScript = ''
machine.start(allow_reboot=True)
machine.wait_for_unit("bind.service")
machine.wait_for_unit("webnsupdate.service")
# ensure base DNS records area available