38 lines
952 B
Nix
38 lines
952 B
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [
|
|
../common.nix
|
|
../../services/openssh.nix
|
|
../../services/hedgedoc.nix
|
|
];
|
|
|
|
networking = {
|
|
hostName = "hedgedoc";
|
|
firewall = {
|
|
allowedTCPPorts = [
|
|
80 # HTTP/1
|
|
443 # HTTP/2
|
|
];
|
|
allowedUDPPorts = [
|
|
443 # HTTP/3
|
|
];
|
|
};
|
|
};
|
|
|
|
services = {
|
|
openssh.banner = ''
|
|
__ __ __
|
|
/\ \ /\ \ /\ \
|
|
\ \ \___ __ \_\ \ __ __ \_\ \ ___ ___
|
|
\ \ _ `\ /'__`\ /'_` \ /'_ `\ /'__`\ /'_` \ / __`\ /'___\
|
|
\ \ \ \ \/\ __//\ \L\ \/\ \L\ \/\ __//\ \L\ \/\ \L\ \/\ \__/
|
|
\ \_\ \_\ \____\ \___,_\ \____ \ \____\ \___,_\ \____/\ \____\
|
|
\/_/\/_/\/____/\/__,_ /\/___L\ \/____/\/__,_ /\/___/ \/____/
|
|
/\____/
|
|
\_/__/
|
|
'';
|
|
};
|
|
|
|
system.stateVersion = "25.11";
|
|
}
|