Maxwell configuration
 
 
 
Go to file
Michele Guerini Rocco af3633a1fa
kill TURN server
1. It attracts more script kiddies that an open van with
   a "free candy" sign
2. It never really worked because no one knows how you're even
   supposed to configure it if your server itself is behind a NAT
3. It's 2024, IPv4 can just fuck off
2024-04-06 19:03:28 +02:00
assets initial commit 2021-02-18 01:46:33 +01:00
custom jobs: notify on failure 2022-10-21 17:31:18 +02:00
secrets kill TURN server 2024-04-06 19:03:28 +02:00
.gitattributes secrets/transcrypt: update to 2.2.0 2023-02-26 19:55:57 +01:00
.gitignore initial commit 2021-02-18 01:46:33 +01:00
README.md README: use rsshfs 2023-08-22 15:35:44 +02:00
configuration.nix kill TURN server 2024-04-06 19:03:28 +02:00
email.nix fix ACME validation 2023-09-11 15:09:10 +02:00
fish.nix README: use rsshfs 2023-08-22 15:35:44 +02:00
hardware.nix update to NixOS 23.05 2023-07-11 21:31:25 +02:00
jobs.nix jobs: configure local backups 2024-03-19 14:09:33 +01:00
magnetico.nix magnetico: fix typo 2021-09-29 10:06:51 +02:00
matrix.nix kill TURN server 2024-04-06 19:03:28 +02:00
nameserver.nix nameserver: fix comment 2024-02-25 18:58:01 +01:00
neovim.nix update to NixOS 23.11 2023-12-21 08:42:57 +01:00
packages.nix update to NixOS 23.11 2023-12-21 08:42:57 +01:00
testing.nix update to NixOS 21.11 2021-12-21 01:45:36 +01:00
variables.nix move dnscrypt to port 443 2023-08-22 15:35:45 +02:00

README.md

Maxwell configuration

The NixOS configuration of Maxwell

Switching configuration

  1. Mount remotely the secrets directory

    $ rsshfs secrets maxwell:$PWD/secrets -o allow_other &

  2. Run nixos-rebuild

    $ nixos-rebuild test -I nixos-config=configuration.nix --target-host maxwell --use-remote-sudo

  3. Unmount the secrets directory

    kill %%

Testing changes

  1. Build a VM

    $ nixos-rebuild build-vm -I nixos-config=testing.nix

  2. Change the open files limit

    $ ulimit -n 90000

  3. Run the VM without internet (to avoid a mess)

    $ unshare -nc result/bin/run-maxwell-vm