Compare commits
No commits in common. "6126aa9142761625710952a3cc5331943ed2ab00" and "77a8e0ffccf86020212b152ea42895b5fd1fd2a7" have entirely different histories.
6126aa9142
...
77a8e0ffcc
2 changed files with 7 additions and 7 deletions
|
|
@ -7,13 +7,14 @@
|
||||||
{
|
{
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ensureDatabases = [ "atticd" ];
|
ensureDatabases = [ "attic" ];
|
||||||
ensureUsers = [{
|
ensureUsers = [{ name = "atticd"; }];
|
||||||
name = "atticd";
|
|
||||||
ensureDBOwnership = true;
|
|
||||||
}];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.postgresql.postStart = lib.mkAfter ''
|
||||||
|
psql -d postgres -tAc 'ALTER DATABASE "attic" OWNER TO "atticd"'
|
||||||
|
'';
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ attic-client ];
|
environment.systemPackages = with pkgs; [ attic-client ];
|
||||||
services.atticd = {
|
services.atticd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -26,7 +27,7 @@
|
||||||
|
|
||||||
garbage-collection.default-retention-period = "3 months";
|
garbage-collection.default-retention-period = "3 months";
|
||||||
|
|
||||||
database.url = "postgresql:///atticd?host=/run/postgresql";
|
database.url = "postgresql:///attic?host=/run/postgresql";
|
||||||
|
|
||||||
listen = "[::]:8080";
|
listen = "[::]:8080";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
podman.dockerCompat = false;
|
podman.dockerCompat = false;
|
||||||
libvirtd.enable = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Legacy BIOS boot (Hetzner cloud instance)
|
# Legacy BIOS boot (Hetzner cloud instance)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue