From 1d28072c0d592fc31a3f517420214c309432f2ae Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Sun, 16 Nov 2025 17:52:03 +0000 Subject: [PATCH] qol(obs): obs autostart --- nix/modules/obs/home.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nix/modules/obs/home.nix b/nix/modules/obs/home.nix index e82e833..c438f2c 100644 --- a/nix/modules/obs/home.nix +++ b/nix/modules/obs/home.nix @@ -49,5 +49,19 @@ in ''}"; }; }; + systemd.user.services.obs-autostart = lib.mkIf cfg.enable { + Unit = { + Description = "OBS daemon"; + After = [ "hyprland-session.target" ]; + }; + Install = { + WantedBy = [ "default.target" ]; + }; + Service = { + ExecStart = "${config.programs.obs-studio.finalPackage}/bin/obs --startreplaybuffer"; + # Restart = "on-failure"; + # RestartSec = "5s"; + }; + }; }; }