diff --git a/hosts/test-vm/configuration.nix b/hosts/test-vm/configuration.nix index e094aee..8297895 100644 --- a/hosts/test-vm/configuration.nix +++ b/hosts/test-vm/configuration.nix @@ -36,6 +36,8 @@ # Resize terminal to host terminal size environment.loginShellInit = '' ${pkgs.xterm}/bin/resize + + echo alias 'sd' can be used to shutdown the VM ''; environment.interactiveShellInit = '' diff --git a/hosts/test-vm/whib-backend.nix b/hosts/test-vm/whib-backend.nix index 7d0e86f..18479d4 100644 --- a/hosts/test-vm/whib-backend.nix +++ b/hosts/test-vm/whib-backend.nix @@ -1,4 +1,5 @@ { + pkgs, lib, config, ... @@ -14,6 +15,8 @@ in }; config = lib.mkIf enabled { + environment.systemPackages = [ pkgs.gnupg ]; + services.whib-backend = { enable = true; domain = "whib-backend.local"; @@ -24,6 +27,10 @@ in postgres = { password = "postgrespassword"; + + backup = { + gpgPassphraseFile = ./whib-gpgPassfile; + }; }; }; diff --git a/hosts/test-vm/whib-gpgPassfile b/hosts/test-vm/whib-gpgPassfile new file mode 100644 index 0000000..49fbc05 --- /dev/null +++ b/hosts/test-vm/whib-gpgPassfile @@ -0,0 +1 @@ +abc123 \ No newline at end of file