1
0
Fork 0
selfhostblocks/_disnix/docs/examples/vaultwarden
2023-07-11 23:26:50 -07:00
..
dev move code using disnix into separate hidden folder 2023-07-11 23:26:50 -07:00
machines move code using disnix into separate hidden folder 2023-07-11 23:26:50 -07:00
prod move code using disnix into separate hidden folder 2023-07-11 23:26:50 -07:00
secrets move code using disnix into separate hidden folder 2023-07-11 23:26:50 -07:00
.sops.yaml move code using disnix into separate hidden folder 2023-07-11 23:26:50 -07:00
distribution.nix move code using disnix into separate hidden folder 2023-07-11 23:26:50 -07:00
network.nix move code using disnix into separate hidden folder 2023-07-11 23:26:50 -07:00
README.md move code using disnix into separate hidden folder 2023-07-11 23:26:50 -07:00
services.nix move code using disnix into separate hidden folder 2023-07-11 23:26:50 -07:00

Vaultwarden setup

This folder contain an example configuration for setting up Vaultwarden on Linode. But before deploying to linode, you can actually test the deployment locally with VirtualBox.

First, setup NixOS on a Linode instance.

When that's done, explore the files in this folder.

To try it out locally, follow deploy to staging.

nixops set-args  --network dev \
  --arg domain '"dev.mydomain.com"' \
  --arg sopsKeyFile '"$HOME/.config/sops/age/keys.txt"'

You can use the info subcommand to print the values of the arguments:

nixops info --network dev

The TL; DR version is, assuming you're where this file is located:

export NIXOPS_DEPLOYMENT=vaultwarden-staging
export DISNIXOS_USE_NIXOPS=1

nixops create ./network-virtualbox.nix -d vaultwarden-staging

nixops deploy --network dev
nixops reboot

disnixos-env -s services.nix -n dev/nixops.nix -d distribution.nix