Skip to content

Commit

Permalink
feat(modules/home): added obs
Browse files Browse the repository at this point in the history
  • Loading branch information
bddvlpr committed Jul 14, 2024
1 parent 94826ce commit 2bb1fc1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/home/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ in {
};

input = {
sensitivity = -0.50;
sensitivity = -0.20;
follow_mouse = 2;
};

Expand Down
30 changes: 30 additions & 0 deletions modules/home/obs/default.nix
Original file line number Diff line number Diff line change
@@ -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"
];
};
}

0 comments on commit 2bb1fc1

Please sign in to comment.