|
|
|
@ -92,7 +92,7 @@
|
|
|
|
|
};
|
|
|
|
|
networking.firewall.extraCommands = ''ip6tables -t nat -A POSTROUTING -s fd00::/80 ! -o docker0 -j MASQUERADE'';
|
|
|
|
|
|
|
|
|
|
cfg.bldScript = pkgs.writeShellScrip "build-vyos" ''
|
|
|
|
|
cfg.bldScript = pkgs.writeShellScript "build-vyos" ''
|
|
|
|
|
cleanup() {
|
|
|
|
|
rmdir "$root"
|
|
|
|
|
}
|
|
|
|
@ -108,8 +108,8 @@
|
|
|
|
|
|
|
|
|
|
cp $bld_dir/build/$iso_name ${cfg.output}
|
|
|
|
|
mapfile -t old_isos < <(ls ${cfg.output} | head -n -${builtins.toString cfg.keep})
|
|
|
|
|
for i in $\{old_isos[@]}; do
|
|
|
|
|
rm -r ${cfg.output}/$\{old_iso[$i]}
|
|
|
|
|
for i in ''${old_isos[@]}; do
|
|
|
|
|
rm -r ${cfg.output}/''${old_iso[$i]}
|
|
|
|
|
done
|
|
|
|
|
'';
|
|
|
|
|
systemd = {
|
|
|
|
|