1
Fork 0

feat: postgres adrielus role

This commit is contained in:
Matei Adriel 2020-05-14 19:13:36 +03:00
parent bb2828b018
commit f2c8b5812c
2 changed files with 18 additions and 5 deletions

View file

@ -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;

View file

@ -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;
'';
}; };
} }