Maxwell configuration
Go to file
rnhmjoj 50daabb203
use sessionVariables for setting XDG directories
environment.sessionVariables are set before the shell starts, so the
wont't pollute the default value before switch to the one set using
the environment.variables.
2022-10-21 17:31:18 +02:00
assets initial commit 2021-02-18 01:46:33 +01:00
custom custom/modules/secretstore: sync with wigfrid version 2022-08-10 16:58:10 +02:00
secrets matrix: add email support 2022-08-11 02:48:10 +02:00
.gitattributes initial commit 2021-02-18 01:46:33 +01:00
.gitignore initial commit 2021-02-18 01:46:33 +01:00
configuration.nix use sessionVariables for setting XDG directories 2022-10-21 17:31:18 +02:00
email.nix email: move state to /var/lib 2022-10-18 14:59:49 +02:00
hardware.nix initial commit 2021-02-18 01:46:33 +01:00
jobs.nix jobs: run backups daily 2022-10-18 14:59:49 +02:00
magnetico.nix magnetico: fix typo 2021-09-29 10:06:51 +02:00
matrix.nix matrix: add email support 2022-08-11 02:48:10 +02:00
nameserver.nix fix namecoin module bug 2021-12-21 01:45:36 +01:00
packages.nix packages: update package without using unstable 2022-09-24 23:56:10 +02:00
README.md add a README 2022-08-11 02:48:10 +02:00
testing.nix update to NixOS 21.11 2021-12-21 01:45:36 +01:00
variables.nix working voip 2021-03-15 00:10:19 +01:00

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