qol(obs): added opinion for autostart

This commit is contained in:
2025-12-27 13:27:41 +00:00
parent 039cd96329
commit 49deb7991d
3 changed files with 10 additions and 3 deletions

View File

@@ -18,7 +18,10 @@
stylix.enable = true;
tmux.enable = true;
theme.enable = true;
obs.enable = true;
obs = {
enable = true;
autostart = false;
};
blender.enable = false;
bottles.enable = false;
fish.enable = true;

View File

@@ -37,7 +37,10 @@
kitty.enable = true;
tmux.enable = true;
theme.enable = true;
obs.enable = true;
obs = {
enable = true;
autostart = true;
};
blender.enable = true;
bottles.enable = true;
fish.enable = true;

View File

@@ -11,6 +11,7 @@ in
{
options.modules.obs = {
enable = lib.mkEnableOption "obs";
autostart = lib.mkEnableOption "autostart with reply";
};
config = lib.mkIf cfg.enable {
programs = {
@@ -49,7 +50,7 @@ in
''}";
};
};
systemd.user.services.obs-autostart = lib.mkIf cfg.enable {
systemd.user.services.obs-autostart = lib.mkIf cfg.autostart {
Unit = {
Description = "OBS daemon";
After = [ "hyprland-session.target" ];