From 7cfee43a499a07b2509c3b5f73bcd46f98f7de28 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Wed, 10 Sep 2025 14:35:26 +0200 Subject: [PATCH] move postgres to bakk --- modules/fh/bakk.nix | 11 +++++++++++ systems/pc/configuration.nix | 21 +++++---------------- 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 modules/fh/bakk.nix diff --git a/modules/fh/bakk.nix b/modules/fh/bakk.nix new file mode 100644 index 0000000..f63d023 --- /dev/null +++ b/modules/fh/bakk.nix @@ -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 + ''; + }; +} diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 91cce5c..fc1756b 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -119,16 +119,6 @@ services.jenkins.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 = { description = "scheibnkleister-presence"; wantedBy = [ "graphical-session.target" ]; @@ -153,9 +143,10 @@ #libimobiledevice #ifuse # optional, to mount using 'ifuse' ]; + documentation.man.generateCaches = true; - networking.firewall.allowedTCPPorts = [ 6567 ]; # mindustry - networking.firewall.allowedUDPPorts = [ 6567 ]; # mindustry + #networking.firewall.allowedTCPPorts = [ 6567 ]; # mindustry + #networking.firewall.allowedUDPPorts = [ 6567 ]; # mindustry mainUser.layout = "de"; mainUser.variant = "us"; age.identityPaths = [ /home/kopatz/.ssh/id_rsa ]; @@ -186,15 +177,13 @@ networking.hostName = "kop-pc"; # Define your hostname. # Enable networking - boot.initrd.systemd.network.wait-online.enable = false; - systemd.network.wait-online.enable = false; + #boot.initrd.systemd.network.wait-online.enable = false; + #systemd.network.wait-online.enable = false; #services.nscd.enableNsncd = false; #disable firewall when doing ipv6 vm stuff #networking.firewall.enable = lib.mkForce false; - - # Enable the X11 windowing system. services.xserver.enable = true;