feat(home-manager): add support for obs-studio (#324)
This commit is contained in:
parent
6effc32e61
commit
76dd2b2e1f
5 changed files with 31 additions and 0 deletions
|
@ -300,6 +300,18 @@
|
||||||
"url": "https://github.com/catppuccin/nvim/archive/4fd72a9ab64b393c2c22b168508fd244877fec96.tar.gz",
|
"url": "https://github.com/catppuccin/nvim/archive/4fd72a9ab64b393c2c22b168508fd244877fec96.tar.gz",
|
||||||
"hash": "1fznbifj9xayimdjld2zhn9003mgp93sd87lpaky7pr6nsgsgnb8"
|
"hash": "1fznbifj9xayimdjld2zhn9003mgp93sd87lpaky7pr6nsgsgnb8"
|
||||||
},
|
},
|
||||||
|
"obs": {
|
||||||
|
"type": "Git",
|
||||||
|
"repository": {
|
||||||
|
"type": "GitHub",
|
||||||
|
"owner": "catppuccin",
|
||||||
|
"repo": "obs"
|
||||||
|
},
|
||||||
|
"branch": "main",
|
||||||
|
"revision": "b17939991545bdd6232e688ec5004b6dfae46f69",
|
||||||
|
"url": "https://github.com/catppuccin/obs/archive/b17939991545bdd6232e688ec5004b6dfae46f69.tar.gz",
|
||||||
|
"hash": "15ndpcy8a37997vd14z08arlv3zk5ldlmb7s7i63dz15yxqnaaym"
|
||||||
|
},
|
||||||
"palette": {
|
"palette": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
./sway.nix
|
./sway.nix
|
||||||
./tmux.nix
|
./tmux.nix
|
||||||
./tofi.nix
|
./tofi.nix
|
||||||
|
./obs-studio.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./yazi.nix
|
./yazi.nix
|
||||||
./zathura.nix
|
./zathura.nix
|
||||||
|
|
16
modules/home-manager/obs-studio.nix
Normal file
16
modules/home-manager/obs-studio.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (config.catppuccin) sources;
|
||||||
|
cfg = config.programs.obs-studio.catppuccin;
|
||||||
|
enable = cfg.enable && config.programs.obs-studio.enable;
|
||||||
|
|
||||||
|
themeName = "Catppuccin_${lib.ctp.mkUpper cfg.flavor}.ovt";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.programs.obs-studio.catppuccin = lib.ctp.mkCatppuccinOpt {name = "obs-studio";};
|
||||||
|
|
||||||
|
config = lib.mkIf enable {
|
||||||
|
xdg.configFile."obs-studio/themes/Catppuccin.obt".source = "${sources.obs}/themes/Catppuccin.obt";
|
||||||
|
xdg.configFile."obs-studio/themes/${themeName}".source = "${sources.obs}/themes/${themeName}";
|
||||||
|
};
|
||||||
|
}
|
|
@ -22,6 +22,7 @@
|
||||||
hyprlock.enable = lib.mkForce false;
|
hyprlock.enable = lib.mkForce false;
|
||||||
imv.enable = lib.mkForce false;
|
imv.enable = lib.mkForce false;
|
||||||
mpv.enable = lib.mkForce false; # NOTE: same as cava, but `mpv` fails to build currently
|
mpv.enable = lib.mkForce false; # NOTE: same as cava, but `mpv` fails to build currently
|
||||||
|
obs-studio.enable = lib.mkForce false;
|
||||||
rio.enable = lib.mkForce false; # marked as broken
|
rio.enable = lib.mkForce false; # marked as broken
|
||||||
rofi.enable = lib.mkForce false;
|
rofi.enable = lib.mkForce false;
|
||||||
swaylock.enable = lib.mkForce false;
|
swaylock.enable = lib.mkForce false;
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
swaylock.enable = true;
|
swaylock.enable = true;
|
||||||
tmux.enable = true;
|
tmux.enable = true;
|
||||||
tofi.enable = true;
|
tofi.enable = true;
|
||||||
|
obs-studio.enable = true;
|
||||||
waybar.enable = true;
|
waybar.enable = true;
|
||||||
yazi.enable = true;
|
yazi.enable = true;
|
||||||
zathura.enable = true;
|
zathura.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue