add postgres container

This commit is contained in:
XenGi 2026-02-03 20:47:52 +01:00
parent 0c65cf06d3
commit 0e824a12bf
Signed by: xengi
SSH key fingerprint: SHA256:dM+fLZGsDvyv6kunjE8bGduL24VsCFB4LEOSdmRHdG0
2 changed files with 41 additions and 0 deletions

View file

@ -103,6 +103,16 @@
./hosts/hedgedoc
];
};
nixosConfigurations."sql" = nixpkgs.lib.nixosSystem {
#system = "x86_64-linux";
#pkgs = import nixpkgs { inherit system; };
inherit system;
modules = [
agenix.nixosModules.default
{ environment.systemPackages = [ (agenix.packages.${system}.default) ]; }
./hosts/sql
];
};
};
#);
}

31
hosts/sql/default.nix Normal file
View file

@ -0,0 +1,31 @@
{ ... }:
{
imports = [
../common.nix
../../services/openssh.nix
];
networking = {
hostName = "sql";
firewall = {
# TODO: add postgres from internal network
};
};
services = {
openssh.banner = ''
___
/\_ \
____ __ \//\ \
/',__\ /'__`\ \ \ \
/\__, `\/\ \L\ \ \_\ \_
\/\____/\ \___, \/\____\
\/___/ \/___/\ \/____/
\ \_\
\/_/
'';
};
system.stateVersion = "25.11";
}