obs config declared

This commit is contained in:
2026-09-21 03:47:36 +05:00
parent 1a3b92b9e3
commit 56059f3082
6 changed files with 224 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
# config/obs-studio and is symlinked into place -- home-manager's
# programs.obs-studio module only wraps the package and its plugins, it has no
# options for profiles or scene collections.
#
# recursive = true matters: without it home-manager would symlink the whole
# ~/.config/obs-studio directory into the nix store, and OBS could not create
# logs/, plugin_config/ or basic/scenes/ inside a read-only store path. With it,
# the directories are real and only the tracked files are links.
#
# OBS rewrites its own config on exit (user.ini geometry/DockState,
# global.ini LastVersion, basic.ini whenever settings change). Those writes
# replace the symlink with a regular file, which is harmless -- the next
# nixos-rebuild switch moves it aside as *.hm-bak and relinks. The repo is the
# source of truth, so anything changed in the OBS GUI that should stick has to
# be copied back:
#
# cp -a ~/.config/obs-studio/user.ini config/obs-studio/user.ini
#
# Iteration loop: edit config/obs-studio/... -> git add if new ->
# nixos-rebuild switch -> restart OBS.
{ ... }:
{
programs.obs-studio = {
enable = true;
# plugins = with pkgs.obs-studio-plugins; [ ];
};
xdg.configFile."obs-studio" = {
source = ../config/obs-studio;
recursive = true;
};
}
-1
View File
@@ -17,7 +17,6 @@
_64gram
glab
vlc
obs-studio
brave
firefox
wireshark
+1
View File
@@ -7,6 +7,7 @@
./packages.nix
./fonts.nix
./nano.nix
./obs.nix
./sway.nix
];