feat: postgres adrielus role
This commit is contained in:
parent
bb2828b018
commit
f2c8b5812c
|
@ -1,10 +1,15 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
home-manager.users.adrielus = {
|
home-manager.users.adrielus = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs;
|
||||||
gource
|
with gitAndTools; [
|
||||||
gitAndTools.hub
|
# Render a git repo
|
||||||
gitAndTools.git-secret
|
gource
|
||||||
];
|
# Store secrets in github repos
|
||||||
|
git-secret
|
||||||
|
# Both of these are github clis
|
||||||
|
gh
|
||||||
|
hub
|
||||||
|
];
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -11,5 +11,13 @@
|
||||||
host all all 127.0.0.1/32 trust
|
host all all 127.0.0.1/32 trust
|
||||||
host all all ::1/128 trust
|
host all all ::1/128 trust
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
initialScript = pkgs.writeText "backend-initScript" ''
|
||||||
|
CREATE ROLE adrielus WITH LOGIN PASSWORD '\' CREATEDB;
|
||||||
|
|
||||||
|
# lunarbox db
|
||||||
|
CREATE DATABASE lunarbox;
|
||||||
|
GRANT ALL PRIVILEGES ON DATABASE lunarbox TO adrielus;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue