feat: Added obs
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
imports = [
|
||||
./guitarix.nix
|
||||
./bambu-studio.nix
|
||||
./guitar.nix
|
||||
./zed.nix
|
||||
./obs-studio.nix
|
||||
];
|
||||
home.packages = [
|
||||
];
|
||||
|
||||
7
home/apps/obs-studio.nix
Normal file
7
home/apps/obs-studio.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{pkgs, ...}: {
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
# enableVirtualCamera = true;
|
||||
plugins = [pkgs.obs-studio-plugins.wlrobs];
|
||||
};
|
||||
}
|
||||
5
nixos/mirai/services/caddy.nix
Normal file
5
nixos/mirai/services/caddy.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{...}: {
|
||||
services = {
|
||||
caddy.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -6,8 +6,10 @@
|
||||
./llama.nix
|
||||
./minecraft.nix
|
||||
./tailscale.nix
|
||||
# ./polaris.nix
|
||||
./caddy.nix
|
||||
./fail2ban.nix
|
||||
|
||||
# ./polaris.nix
|
||||
# ./seafile.nix
|
||||
# ./syncthing.nix
|
||||
# ./vscode.nix
|
||||
@@ -22,19 +24,5 @@
|
||||
nix-serve = {
|
||||
enable = true;
|
||||
};
|
||||
fail2ban = {
|
||||
enable = true;
|
||||
bantime = "24h"; # Ban IPs for one day on the first ban
|
||||
bantime-increment = {
|
||||
enable = true; # Enable increment of bantime after each violation
|
||||
# formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
|
||||
multipliers = "1 2 4 8 16 32 64";
|
||||
maxtime = "168h"; # Do not ban for more than 1 week
|
||||
overalljails = true; # Calculate the bantime based on all the violations
|
||||
};
|
||||
};
|
||||
caddy = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
15
nixos/mirai/services/fail2ban.nix
Normal file
15
nixos/mirai/services/fail2ban.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{...}: {
|
||||
services = {
|
||||
fail2ban = {
|
||||
enable = true;
|
||||
bantime = "24h"; # Ban IPs for one day on the first ban
|
||||
bantime-increment = {
|
||||
enable = true; # Enable increment of bantime after each violation
|
||||
# formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
|
||||
multipliers = "1 2 4 8 16 32 64";
|
||||
maxtime = "168h"; # Do not ban for more than 1 week
|
||||
overalljails = true; # Calculate the bantime based on all the violations
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user