Maxwell configuration
rnhmjoj
af3633a1fa
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 |
||
---|---|---|
assets | ||
custom | ||
secrets | ||
.gitattributes | ||
.gitignore | ||
configuration.nix | ||
email.nix | ||
fish.nix | ||
hardware.nix | ||
jobs.nix | ||
magnetico.nix | ||
matrix.nix | ||
nameserver.nix | ||
neovim.nix | ||
packages.nix | ||
README.md | ||
testing.nix | ||
variables.nix |
Maxwell configuration
The NixOS configuration of Maxwell
Switching configuration
-
Mount remotely the secrets directory
$ rsshfs secrets maxwell:$PWD/secrets -o allow_other &
-
Run nixos-rebuild
$ nixos-rebuild test -I nixos-config=configuration.nix --target-host maxwell --use-remote-sudo
-
Unmount the secrets directory
kill %%
Testing changes
-
Build a VM
$ nixos-rebuild build-vm -I nixos-config=testing.nix
-
Change the open files limit
$ ulimit -n 90000
-
Run the VM without internet (to avoid a mess)
$ unshare -nc result/bin/run-maxwell-vm