Something went wrong. Try again.
simple and declarative nixos router
Something went wrong. Try again.
123456789101112131415161718192021{ lib, cfg, writeTextFile}:
writeTextFile { name = "bird.conf";
derivationArgs.nativeBuildInputs = lib.optional cfg.checkConfig cfg.package;
checkPhase = lib.optionalString cfg.checkConfig '' ln -s $out bird.conf ${cfg.preCheckConfig} bird -d -p -c bird.conf '';
text = ''
'';}