add a README

This commit is contained in:
Michele Guerini Rocco 2022-08-10 17:28:30 +02:00
parent b6a7b2dbdd
commit 83e132d9c2
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

32
README.md Normal file
View File

@ -0,0 +1,32 @@
# Maxwell configuration
The NixOS configuration of Maxwell
## Switching configuration
1. Mount remotely the secrets directory
`$ ssh -A maxwell sshfs wigfrid.ydns.eu:$PWD $PWD -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
`ssh -A maxwell fusemount -u $PWD`
## 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`