maxwell/README.md

33 lines
614 B
Markdown
Raw Permalink Normal View History

2022-08-10 17:28:30 +02:00
# Maxwell configuration
The NixOS configuration of Maxwell
## Switching configuration
1. Mount remotely the secrets directory
2023-07-12 12:29:25 +02:00
`$ rsshfs secrets maxwell:$PWD/secrets -o allow_other &`
2022-08-10 17:28:30 +02:00
2. Run nixos-rebuild
`$ nixos-rebuild test -I nixos-config=configuration.nix
--target-host maxwell --use-remote-sudo`
3. Unmount the secrets directory
2023-07-12 12:29:25 +02:00
`kill %%`
2022-08-10 17:28:30 +02:00
## 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`