Compare commits
2 commits
77a8e0ffcc
...
6126aa9142
| Author | SHA1 | Date | |
|---|---|---|---|
| 6126aa9142 | |||
| 65aacd4220 |
2 changed files with 7 additions and 7 deletions
|
|
@ -7,14 +7,13 @@
|
|||
{
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [ "attic" ];
|
||||
ensureUsers = [{ name = "atticd"; }];
|
||||
ensureDatabases = [ "atticd" ];
|
||||
ensureUsers = [{
|
||||
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 ];
|
||||
services.atticd = {
|
||||
enable = true;
|
||||
|
|
@ -27,7 +26,7 @@
|
|||
|
||||
garbage-collection.default-retention-period = "3 months";
|
||||
|
||||
database.url = "postgresql:///attic?host=/run/postgresql";
|
||||
database.url = "postgresql:///atticd?host=/run/postgresql";
|
||||
|
||||
listen = "[::]:8080";
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@
|
|||
virtualisation = {
|
||||
docker.enable = true;
|
||||
podman.dockerCompat = false;
|
||||
libvirtd.enable = false;
|
||||
};
|
||||
|
||||
# Legacy BIOS boot (Hetzner cloud instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue