mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-05-18 19:43:07 +00:00
Forgot to commit my stuff btw
This commit is contained in:
parent
45e09b810a
commit
6cdd7640cb
15 changed files with 343 additions and 248 deletions
22
.config/nixos/shared/server/firewall.nix
Normal file
22
.config/nixos/shared/server/firewall.nix
Normal 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
|
||||
];
|
||||
}
|
15
.config/nixos/shared/server/ssh.nix
Normal file
15
.config/nixos/shared/server/ssh.nix
Normal 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;
|
||||
}
|
17
.config/nixos/shared/server/tailscale.nix
Normal file
17
.config/nixos/shared/server/tailscale.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue