From 189cd4fe3556934df879ea0fc501fd789e954551 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 25 Nov 2024 08:47:29 +0100 Subject: [PATCH] wip --- hosts/test-vm/configuration.nix | 2 ++ hosts/test-vm/whib-backend.nix | 7 +++++++ hosts/test-vm/whib-gpgPassfile | 1 + 3 files changed, 10 insertions(+) create mode 100644 hosts/test-vm/whib-gpgPassfile 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