diff options
| -rw-r--r-- | NixOS on my server/index.md | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/NixOS on my server/index.md b/NixOS on my server/index.md index 0064b92..ffe25ed 100644 --- a/NixOS on my server/index.md +++ b/NixOS on my server/index.md @@ -362,7 +362,7 @@ in ### Packaging as binary Following this example -<https://wiki.nixos.org/wiki/Python#With_pyproject.toml> +[Python - wiki.nixos.org](https://wiki.nixos.org/wiki/Python#With_pyproject.toml) and adding a bit of meta data, i can now build the application as a command :) This means you can run it with `nix run git+https://git.node5.net/blog/blog.node5.net_flask`, @@ -469,13 +469,15 @@ environment.systemPackages = with pkgs; [ or listed out -- /nix/store/10hk7srr12wgp2hqm5lai0xxr69m76b7-python3.13-flask-3.1.2 -- /nix/store/jl0mxihyizv77l66mzbvmv49iiri72sd-python3.13-pyyaml-6.0.3 -- /nix/store/pkj9yz58kijfwyg4c0xpwc2dlwwswr6s-python3.13-markdown-3.10.2 -- /nix/store/6svr8x0lzmsn8d70asdc5qns35273216-python3.13-python-telegram-bot-22.7 -- /nix/store/6snki2zk3rmh13wwi07g3x79a1rr032m-python3.13-pygments-2.20.0 -- /nix/store/rfhv4bxzg6aqv7ll7d2g3fx7vdj63ks3-python3.13-tabulate-0.10.0 -- /nix/store/0r6k8xa2kgqyp3r4v2w7yrb80ma2iawm-python3-3.13.12 +``` +/nix/store/10hk7srr12wgp2hqm5lai0xxr69m76b7-python3.13-flask-3.1.2 +/nix/store/jl0mxihyizv77l66mzbvmv49iiri72sd-python3.13-pyyaml-6.0.3 +/nix/store/pkj9yz58kijfwyg4c0xpwc2dlwwswr6s-python3.13-markdown-3.10.2 +/nix/store/6svr8x0lzmsn8d70asdc5qns35273216-python3.13-python-telegram-bot-22.7 +/nix/store/6snki2zk3rmh13wwi07g3x79a1rr032m-python3.13-pygments-2.20.0 +/nix/store/rfhv4bxzg6aqv7ll7d2g3fx7vdj63ks3-python3.13-tabulate-0.10.0 +/nix/store/0r6k8xa2kgqyp3r4v2w7yrb80ma2iawm-python3-3.13.12 +``` ### Prod UWSGI @@ -672,6 +674,10 @@ Minor things to improve, but it works By default nix will log firewall rejections, you'll want to turn this off, to save your SSD +```nix networking.firewall.logRefusedConnections -[523935.720369] refused connection: IN=eno1 OUT= MAC=ec:8e:b5:73:ae:6b:22:55:a4:35:cd:8e:08:00 SRC=193.32.209.238 DST=45.145.93.105 LEN=40 TOS=0x00 PREC=0x20 TTL=56 ID=0 PROTO=TCP SPT=33401 DPT=28901 WINDOW=65535 RES=0x00 SYN URGP=0 +``` +``` +[523935.720369] refused connection: IN=eno1 OUT= MAC=ec:8e:b5:73:ae:6b:22:55:a4:35:cd:8e:08:00 SRC=193.32.209.238 DST=45.145.93.105 LEN=40 TOS=0x00 PREC=0x20 TTL=56 ID=0 PROTO=TCP SPT=33401 DPT=28901 WINDOW=65535 RES=0x00 SYN URGP=0 +``` |
