nixmsi: allow 27015 udp

This commit is contained in:
chayleaf 2024-10-21 13:29:32 +07:00
parent 8e3d0c90a8
commit 6d8e1d85ac
Signed by: chayleaf
GPG key ID: 78171AD46227E68E
2 changed files with 3 additions and 2 deletions

View file

@ -60,11 +60,11 @@ def main():
else:
copy_args.extend(["--from", "ssh-ng://root@" + build_host])
else:
print('building', drv)
print('building', attr_path)
cmd = ["nix", "build", attr_path, "--no-link", "--json"] + args
ret = subprocess.run(cmd, check=True, encoding="utf-8", stdout=subprocess.PIPE)
ret = json.loads(ret.stdout)[0]["outputs"]["out"]
print(drv, 'output', ret)
print('output', ret)
cmds = []
if act in ["boot", "switch"]:
cmds.append(["nix-env", "-p", "/nix/var/nix/profiles/system", "--set", ret])

View file

@ -81,6 +81,7 @@
7777
9887
];
networking.firewall.allowedUDPPorts = [ 27015 ];
# kde connect
networking.firewall.allowedTCPPortRanges = [
{ from = 1714; to = 1764; }