about summary refs log tree commit diff stats
path: root/sys/impermanence
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-12-02 15:58:10 +0100
committerSoispha <soispha@vhack.eu>2023-12-02 15:58:10 +0100
commitb01d2dbeb9d7c3817f87701863c15c9c84dde5d8 (patch)
tree1682d6821a5525fe7e0d74e8092cfb6fca3ce9c0 /sys/impermanence
parentfeat(hm/conf/nvim/plgs/lsp/servers): Add python language servers (diff)
downloadnixos-config-b01d2dbeb9d7c3817f87701863c15c9c84dde5d8.tar.gz
nixos-config-b01d2dbeb9d7c3817f87701863c15c9c84dde5d8.zip
fix(sys/impermanence): Persist the postgresql datebase, if it exists
Diffstat (limited to 'sys/impermanence')
-rw-r--r--sys/impermanence/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/impermanence/default.nix b/sys/impermanence/default.nix
index 6f5df893..1ae35761 100644
--- a/sys/impermanence/default.nix
+++ b/sys/impermanence/default.nix
@@ -15,7 +15,8 @@
     ++ lib.optional config.networking.networkmanager.enable "/etc/NetworkManager"
     ++ lib.optional config.boot.lanzaboote.enable "/etc/secureboot"
     ++ lib.optional config.hardware.bluetooth.enable "/var/lib/bluetooth"
-    ++ lib.optional config.virtualisation.waydroid.enable "/var/lib/waydroid";
+    ++ lib.optional config.virtualisation.waydroid.enable "/var/lib/waydroid"
+    ++ lib.optional config.services.postgresql.enable "/var/lib/postgresql";
 in {
   options.soispha.impermanence = {
     enable = lib.mkOption {