feat: Added obs

This commit is contained in:
uttarayan21
2025-03-20 14:00:39 +05:30
parent d3a94c834a
commit 98643c040a
5 changed files with 32 additions and 16 deletions

View File

@@ -2,7 +2,8 @@
imports = [ imports = [
./guitarix.nix ./guitarix.nix
./bambu-studio.nix ./bambu-studio.nix
./guitar.nix ./zed.nix
./obs-studio.nix
]; ];
home.packages = [ home.packages = [
]; ];

7
home/apps/obs-studio.nix Normal file
View File

@@ -0,0 +1,7 @@
{pkgs, ...}: {
programs.obs-studio = {
enable = true;
# enableVirtualCamera = true;
plugins = [pkgs.obs-studio-plugins.wlrobs];
};
}

View File

@@ -0,0 +1,5 @@
{...}: {
services = {
caddy.enable = true;
};
}

View File

@@ -6,8 +6,10 @@
./llama.nix ./llama.nix
./minecraft.nix ./minecraft.nix
./tailscale.nix ./tailscale.nix
# ./polaris.nix ./caddy.nix
./fail2ban.nix
# ./polaris.nix
# ./seafile.nix # ./seafile.nix
# ./syncthing.nix # ./syncthing.nix
# ./vscode.nix # ./vscode.nix
@@ -22,19 +24,5 @@
nix-serve = { nix-serve = {
enable = true; 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;
};
}; };
} }

View 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
};
};
};
}