feat: Add attic-client to x86_64-linux system

The attic-client has been added to the packages for the x86_64-linux system. This change enables interaction with the Attic distributed storage system, expanding the capabilities of this system setting.
This commit is contained in:
Harald Hoyer 2024-06-28 13:10:00 +02:00
parent 97e7a73c94
commit 5a362acdd3

View file

@ -1,5 +1,15 @@
{ pkgs, lib, config, ... }:
{
services.postgresql = {
enable = true;
ensureDatabases = [ "attic" ];
ensureUsers = [{ name = "atticd"; }];
};
systemd.services.postgresql.postStart = lib.mkAfter ''
$PSQL -tAc 'ALTER DATABASE "attic" OWNER TO "atticd"'
'';
environment.systemPackages = with pkgs; [
attic-client
];
@ -10,6 +20,8 @@
credentialsFile = "/etc/atticd.env";
settings = {
database.url = "postgresql:///attic?host=/run/postgresql";
listen = "[::]:8080";
# Data chunking