Rename to WhiteWoron
This commit is contained in:
1 parent
f8a2929782
commit
93e92953f4
12 files changed
+65
-64
No files matched your search
@@ -0,0 +1,19 @@
|
||||
{config, pkgs, ... }:{
|
||||
config.services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [ "test" ];
|
||||
authentication = pkgs.lib.mkOverride 10 ''
|
||||
#type database DBuser auth-method
|
||||
local all all trust
|
||||
# ipv4
|
||||
host all all 127.0.0.1/32 trust
|
||||
# ipv6
|
||||
host all all ::1/128 trust
|
||||
'';
|
||||
initialScript = pkgs.writeText "backend-initScript" ''
|
||||
CREATE ROLE nixcloud WITH LOGIN PASSWORD 'nixcloud' CREATEDB;
|
||||
CREATE DATABASE nixcloud;
|
||||
GRANT ALL PRIVILEGES ON DATABASE nixcloud TO nixcloud;
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user