36 lines
753 B
Nix
36 lines
753 B
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [
|
|
../common.nix
|
|
../../services/openssh.nix
|
|
../../services/postgres.nix
|
|
];
|
|
|
|
networking = {
|
|
hostName = "sql";
|
|
firewall = {
|
|
enable = true;
|
|
extraInputRules = ''
|
|
ip saddr 195.160.173.0/24 ip daddr 195.160.173.15 tcp dport 5432 accept
|
|
ip6 saddr 2001:678:760:cccb::/64 ip6 daddr 2001:678:760:cccb::15 tcp dport 5432 accept
|
|
'';
|
|
};
|
|
};
|
|
|
|
services = {
|
|
openssh.banner = ''
|
|
___
|
|
/\_ \
|
|
____ __ \//\ \
|
|
/',__\ /'__`\ \ \ \
|
|
/\__, `\/\ \L\ \ \_\ \_
|
|
\/\____/\ \___, \/\____\
|
|
\/___/ \/___/\ \/____/
|
|
\ \_\
|
|
\/_/
|
|
'';
|
|
};
|
|
|
|
system.stateVersion = "25.11";
|
|
}
|