This commit is contained in:
Daniel Flanagan 2023-08-04 16:07:28 -05:00
parent dbf9d04395
commit 19e74cb842
2 changed files with 43 additions and 0 deletions

View file

@ -11,6 +11,7 @@
home.pointerCursor = { home.pointerCursor = {
name = "Catppuccin-Mocha-Sapphire-Cursors"; name = "Catppuccin-Mocha-Sapphire-Cursors";
package = pkgs.catppuccin-cursors.mochaSapphire; package = pkgs.catppuccin-cursors.mochaSapphire;
size = 64;
}; };
programs.home-manager.enable = true; programs.home-manager.enable = true;

View file

@ -159,6 +159,7 @@ in
bottom bottom
brightnessctl brightnessctl
broot broot
clang
curl curl
delta delta
dog dog
@ -167,8 +168,10 @@ in
exa exa
fd fd
feh feh
file
(firefox.override { extraNativeMessagingHosts = [ passff-host ]; }) (firefox.override { extraNativeMessagingHosts = [ passff-host ]; })
fwupd fwupd
gcc
gimp gimp
git git
git-lfs git-lfs
@ -185,6 +188,7 @@ in
libinput-gestures libinput-gestures
libnotify libnotify
lutris lutris
gnumake
mako mako
mosh mosh
nmap nmap
@ -266,6 +270,44 @@ in
]; ];
}; };
services.postgresql = {
enable = true;
ensureDatabases = [ "daniel" ];
ensureUsers = [
{
name = "daniel";
ensurePermissions = {
"DATABASE daniel" = "ALL PRIVILEGES";
};
}
];
enableTCPIP = true;
package = pkgs.postgresql_15;
authentication = pkgs.lib.mkOverride 10 ''
#type database DBuser auth-method
local all postgres peer map=superuser_map
local all daniel peer map=superuser_map
local sameuser all peer map=superuser_map
# lan ipv4
host all all 10.0.0.0/24 trust
# tailnet ipv4
host all all 100.64.0.0/10 trust
'';
identMap = ''
# ArbitraryMapName systemUser DBUser
superuser_map root postgres
superuser_map postgres postgres
superuser_map daniel postgres
# Let other names login as themselves
superuser_map /^(.*)$ \1
'';
};
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedTCPPorts = [ 22 ];
networking.firewall.allowedUDPPorts = [ ]; networking.firewall.allowedUDPPorts = [ ];