change port on postgresql

This commit is contained in:
2025-12-26 11:55:31 -06:00
parent bf18cb0d5d
commit 1118a4a25d
+31 -13
View File
@@ -1,4 +1,10 @@
{ config, lib, pkgs, meta, ... }:
{
config,
lib,
pkgs,
meta,
...
}:
let
nimhStaticSite = pkgs.runCommand "nimh-static-site" { } ''
@@ -9,7 +15,10 @@ in
{
imports = [ ];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.config.allowUnfree = true;
# Secret Management
@@ -84,8 +93,6 @@ in
};
};
# Setup vhosts via nginx
services.nginx = {
enable = true;
@@ -135,7 +142,10 @@ in
bootstrap-minio = {
enable = true;
environments = [ "dev" "prod" ];
environments = [
"dev"
"prod"
];
};
default-nginx = {
@@ -148,19 +158,19 @@ in
# BLOG SERVICE #
# ================================ #
# Fullstack sourcecode
# Minio for backend storage
# Postgresql/postgrest for text storage
services.postgresql-db = {
enable = true;
dataDir = "/var/lib/postgresql";
port = 5432;
port = 5431;
credentialsFile = config.sops.secrets."postgresql-credentials".path;
databases = [ "rdblog" ];
};
# Fullstack sourcecode
# ================================ #
# END BLOG SERVICE #
# ================================ #
@@ -178,7 +188,6 @@ in
# END MINECRAFT #
# ================================ #
# Grub Boot Loader Setup
boot.loader = {
efi = {
@@ -201,11 +210,18 @@ in
hostName = meta.hostname;
hostId = meta.hostId;
defaultGateway = "10.0.0.1";
nameservers = [ "1.1.1.1" "1.0.0.1" ];
nameservers = [
"1.1.1.1"
"1.0.0.1"
];
firewall = {
enable = true;
allowedTCPPorts = [ 22 80 443];
allowedTCPPorts = [
22
80
443
];
};
interfaces.eth0.ipv4.addresses = [
@@ -249,11 +265,13 @@ in
# pulse.enable = true;
# };
# Define a user account. Don't forget to set a password with passwd.
users.users.sysAdmin = {
isNormalUser = true;
extraGroups = [ "wheel" "networkManager" ];
extraGroups = [
"wheel"
"networkManager"
];
# created with mkpasswd
hashedPassword = "$y$j9T$ILYm49Ylk4h6Wforpdw161$ds0DvzLQkbh0o3vN6D.gZ4KMo..0AOR/DwNcWtY0nH2";
openssh.authorizedKeys.keys = [