This commit is contained in:
parent
e7a93efafa
commit
50b333a5a9
1 changed files with 121 additions and 4 deletions
40
hosts/prusa-connect/default.nix
Normal file
40
hosts/prusa-connect/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
../../services/openssh.nix
|
||||
../../services/prometheus-node.nix
|
||||
./podman.nix
|
||||
./prusa-connect.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "prusa-connect";
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
22 # SSH
|
||||
80 # HTTP/1
|
||||
443 # HTTP/2
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
443 # HTTP/3
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc."ssh/banner".text = ''
|
||||
__
|
||||
/\ \__
|
||||
_____ _ __ __ __ ____ __ ___ ___ ___ ___ __ ___\ \ ,_\
|
||||
/\ '__`\/\`'__\/\ \/\ \ /',__\ /'__`\ _______ /'___\ / __`\ /' _ `\ /' _ `\ /'__`\ /'___\ \ \/
|
||||
\ \ \L\ \ \ \/ \ \ \_\ \/\__, `\/\ \L\.\_/\______\/\ \__//\ \L\ \/\ \/\ \/\ \/\ \/\ __//\ \__/\ \ \_
|
||||
\ \ ,__/\ \_\ \ \____/\/\____/\ \__/.\_\/______/\ \____\ \____/\ \_\ \_\ \_\ \_\ \____\ \____\\ \__\
|
||||
\ \ \/ \/_/ \/___/ \/___/ \/__/\/_/ \/____/\/___/ \/_/\/_/\/_/\/_/\/____/\/____/ \/__/
|
||||
\ \_\
|
||||
\/_/
|
||||
'';
|
||||
services.openssh.settings.Banner = "/etc/ssh/banner";
|
||||
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
Loading…
Reference in a new issue