Forgot to commit my stuff btw

This commit is contained in:
Andrei Jiroh Halili 2025-01-08 22:11:59 +08:00
parent 45e09b810a
commit 6cdd7640cb
15 changed files with 343 additions and 248 deletions

View file

@ -0,0 +1,22 @@
{ config, pkgs, lib, ... }:
{
networking.firewall.allowedTCPPortRanges = [
{ from = 3000; to = 3999; }
{ from = 8000; to = 8999; }
];
networking.firewall.allowedUDPPortRanges = [
{ from = 3000; to = 3999; }
{ from = 8000; to = 8999; }
];
networking.firewall.allowedTCPPorts = [
22
80
443
];
networking.firewall.allowedUDPPorts = [
22
80
443
];
}

View file

@ -0,0 +1,15 @@
# To use this shared NixOS configuration for OpenSSH, just import this file
# on your NixOS configuration.
{ config, pkgs, lib, ... }:
{
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
};
};
programs.mosh.enable = true;
}

View file

@ -0,0 +1,17 @@
# This Nix file contains the Tailscale configuration here
# in NixOS, mostly on the side of the daemon and its related
# configurations.
{ config, pkgs, lib, ... }:
{
services.tailscale = {
enable = true;
useRoutingFeatures = "both";
openFirewall = true;
disableTaildrop = false;
extraDaemonFlags = [
"--verbose 3"
];
};
}