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:
parent
97e7a73c94
commit
5a362acdd3
|
@ -1,5 +1,15 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ 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; [
|
environment.systemPackages = with pkgs; [
|
||||||
attic-client
|
attic-client
|
||||||
];
|
];
|
||||||
|
@ -10,6 +20,8 @@
|
||||||
credentialsFile = "/etc/atticd.env";
|
credentialsFile = "/etc/atticd.env";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
database.url = "postgresql:///attic?host=/run/postgresql";
|
||||||
|
|
||||||
listen = "[::]:8080";
|
listen = "[::]:8080";
|
||||||
|
|
||||||
# Data chunking
|
# Data chunking
|
||||||
|
|
Loading…
Reference in a new issue