feat: postgres adrielus role
This commit is contained in:
parent
bb2828b018
commit
f2c8b5812c
|
@ -1,9 +1,14 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
home-manager.users.adrielus = {
|
home-manager.users.adrielus = {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs;
|
||||||
|
with gitAndTools; [
|
||||||
|
# Render a git repo
|
||||||
gource
|
gource
|
||||||
gitAndTools.hub
|
# Store secrets in github repos
|
||||||
gitAndTools.git-secret
|
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