feat: postgres adrielus role
This commit is contained in:
parent
bb2828b018
commit
f2c8b5812c
|
@ -1,9 +1,14 @@
|
|||
{ pkgs, ... }: {
|
||||
home-manager.users.adrielus = {
|
||||
home.packages = with pkgs; [
|
||||
home.packages = with pkgs;
|
||||
with gitAndTools; [
|
||||
# Render a git repo
|
||||
gource
|
||||
gitAndTools.hub
|
||||
gitAndTools.git-secret
|
||||
# Store secrets in github repos
|
||||
git-secret
|
||||
# Both of these are github clis
|
||||
gh
|
||||
hub
|
||||
];
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
|
|
@ -11,5 +11,13 @@
|
|||
host all all 127.0.0.1/32 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