move postgres to bakk

This commit is contained in:
Kopatz
2025-09-10 14:35:26 +02:00
parent ff0f17fed2
commit 7cfee43a49
2 changed files with 16 additions and 16 deletions

11
modules/fh/bakk.nix Normal file
View File

@@ -0,0 +1,11 @@
{ config, pkgs, lib, ... }: {
services.postgresql = {
enable = true;
extensions = with pkgs.postgresql14Packages; [ pg_libversion ];
authentication = pkgs.lib.mkOverride 10 ''
#TYPE DATABASE USER ADDRESS METHOD
local all all trust
host all all 127.0.0.1/32 trust
'';
};
}

View File

@@ -119,16 +119,6 @@
services.jenkins.enable = false; services.jenkins.enable = false;
virtualisation.waydroid.enable = false; virtualisation.waydroid.enable = false;
services.postgresql = {
enable = true;
extensions = with pkgs.postgresql14Packages; [ pg_libversion ];
authentication = pkgs.lib.mkOverride 10 ''
#TYPE DATABASE USER ADDRESS METHOD
local all all trust
host all all 127.0.0.1/32 trust
'';
};
systemd.user.services.scheibnkleister-presence = { systemd.user.services.scheibnkleister-presence = {
description = "scheibnkleister-presence"; description = "scheibnkleister-presence";
wantedBy = [ "graphical-session.target" ]; wantedBy = [ "graphical-session.target" ];
@@ -153,9 +143,10 @@
#libimobiledevice #libimobiledevice
#ifuse # optional, to mount using 'ifuse' #ifuse # optional, to mount using 'ifuse'
]; ];
documentation.man.generateCaches = true;
networking.firewall.allowedTCPPorts = [ 6567 ]; # mindustry #networking.firewall.allowedTCPPorts = [ 6567 ]; # mindustry
networking.firewall.allowedUDPPorts = [ 6567 ]; # mindustry #networking.firewall.allowedUDPPorts = [ 6567 ]; # mindustry
mainUser.layout = "de"; mainUser.layout = "de";
mainUser.variant = "us"; mainUser.variant = "us";
age.identityPaths = [ /home/kopatz/.ssh/id_rsa ]; age.identityPaths = [ /home/kopatz/.ssh/id_rsa ];
@@ -186,15 +177,13 @@
networking.hostName = "kop-pc"; # Define your hostname. networking.hostName = "kop-pc"; # Define your hostname.
# Enable networking # Enable networking
boot.initrd.systemd.network.wait-online.enable = false; #boot.initrd.systemd.network.wait-online.enable = false;
systemd.network.wait-online.enable = false; #systemd.network.wait-online.enable = false;
#services.nscd.enableNsncd = false; #services.nscd.enableNsncd = false;
#disable firewall when doing ipv6 vm stuff #disable firewall when doing ipv6 vm stuff
#networking.firewall.enable = lib.mkForce false; #networking.firewall.enable = lib.mkForce false;
# Enable the X11 windowing system. # Enable the X11 windowing system.
services.xserver.enable = true; services.xserver.enable = true;