Some changes including nushell
This commit is contained in:
@@ -7,4 +7,10 @@
|
||||
./synapse
|
||||
];
|
||||
};
|
||||
|
||||
dingbox = {
|
||||
imports = [
|
||||
./postgres
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
23
modules/postgres/default.nix
Normal file
23
modules/postgres/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
username = "daniel";
|
||||
in {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
|
||||
authentication = pkgs.lib.mkOverride 10 ''
|
||||
local all all trust
|
||||
host all all 127.0.0.1/32 trust
|
||||
host all all ::1/128 trust
|
||||
'';
|
||||
|
||||
initialScript = pkgs.writeText "oubliette-initscript" ''
|
||||
CREATE ROLE oubliette WITH LOGIN PASSWORD 'oubliette' CREATEDB;
|
||||
CREATE DATABASE oubliette_dev;
|
||||
GRANT ALL PRIVILEGES ON DATABASE oubliette TO oubliette;
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user