diff --git a/systems/x86_64-linux/attic/atticd.nix b/systems/x86_64-linux/attic/atticd.nix index dc91235..6ba5e4c 100644 --- a/systems/x86_64-linux/attic/atticd.nix +++ b/systems/x86_64-linux/attic/atticd.nix @@ -7,13 +7,14 @@ { services.postgresql = { enable = true; - ensureDatabases = [ "atticd" ]; - ensureUsers = [{ - name = "atticd"; - ensureDBOwnership = true; - }]; + ensureDatabases = [ "attic" ]; + ensureUsers = [{ name = "atticd"; }]; }; + systemd.services.postgresql.postStart = lib.mkAfter '' + psql -d postgres -tAc 'ALTER DATABASE "attic" OWNER TO "atticd"' + ''; + environment.systemPackages = with pkgs; [ attic-client ]; services.atticd = { enable = true; @@ -26,7 +27,7 @@ garbage-collection.default-retention-period = "3 months"; - database.url = "postgresql:///atticd?host=/run/postgresql"; + database.url = "postgresql:///attic?host=/run/postgresql"; listen = "[::]:8080"; diff --git a/systems/x86_64-linux/attic/default.nix b/systems/x86_64-linux/attic/default.nix index e6658e5..8daa780 100644 --- a/systems/x86_64-linux/attic/default.nix +++ b/systems/x86_64-linux/attic/default.nix @@ -22,7 +22,6 @@ virtualisation = { docker.enable = true; podman.dockerCompat = false; - libvirtd.enable = false; }; # Legacy BIOS boot (Hetzner cloud instance)