From 2bb1fc15ae655ce7298dabaadaa872f2ddf425cc Mon Sep 17 00:00:00 2001 From: Luna Simons Date: Sun, 14 Jul 2024 15:00:24 +0200 Subject: [PATCH] feat(modules/home): added obs --- modules/home/hyprland/default.nix | 2 +- modules/home/obs/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 modules/home/obs/default.nix diff --git a/modules/home/hyprland/default.nix b/modules/home/hyprland/default.nix index c2b5616..592b828 100644 --- a/modules/home/hyprland/default.nix +++ b/modules/home/hyprland/default.nix @@ -51,7 +51,7 @@ in { }; input = { - sensitivity = -0.50; + sensitivity = -0.20; follow_mouse = 2; }; diff --git a/modules/home/obs/default.nix b/modules/home/obs/default.nix new file mode 100644 index 0000000..db200dc --- /dev/null +++ b/modules/home/obs/default.nix @@ -0,0 +1,30 @@ +{ + config, + lib, + pkgs, + ... +}: let + inherit (lib) mkIf mkOption types; + + cfg = config.sysc.obs; +in { + options.sysc.obs = { + enable = mkOption { + type = types.bool; + default = true; + description = "Whether to enable OBS."; + }; + }; + + config = mkIf cfg.enable { + programs.obs-studio = { + enable = true; + + plugins = with pkgs.obs-studio-plugins; [wlrobs]; + }; + + home.persistence."/persist/home/bddvlpr".directories = [ + ".config/obs-studio" + ]; + }; +}