Skip to content

Commit

Permalink
refactor: move obs to home-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Oct 17, 2023
1 parent fb30306 commit ee4385d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 17 deletions.
1 change: 1 addition & 0 deletions homes/x86_64-linux/khaneliman@khanelinix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ in
};
music = enabled;
social = enabled;
video = enabled;
};

tools = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ in
};

config = mkIf cfg.enable {
environment.systemPackages = [
(pkgs.wrapOBS {
plugins = with pkgs.obs-studio-plugins; [
looking-glass-obs
obs-move-transition
obs-multi-rtmp
wlrobs
];
})
];
programs.obs-studio = {
enable = true;
package = pkgs.obs-studio;

plugins = with pkgs.obs-studio-plugins; [
looking-glass-obs
obs-move-transition
obs-multi-rtmp
wlrobs
];
};
};
}
25 changes: 25 additions & 0 deletions modules/home/suites/video/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ config
, lib
, options
, pkgs
, ...
}:
let
inherit (lib) mkIf;
inherit (lib.internal) mkBoolOpt enabled;

cfg = config.khanelinix.suites.video;
in
{
options.khanelinix.suites.video = {
enable = mkBoolOpt false "Whether or not to enable video configuration.";
};

config = mkIf cfg.enable {
khanelinix = {
apps = {
obs = enabled;
};
};
};
}
8 changes: 1 addition & 7 deletions modules/nixos/suites/video/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}:
let
inherit (lib) mkIf;
inherit (lib.internal) mkBoolOpt enabled;
inherit (lib.internal) mkBoolOpt;

cfg = config.khanelinix.suites.video;
in
Expand All @@ -21,11 +21,5 @@ in
pitivi
vlc
];

khanelinix = {
apps = {
obs = enabled;
};
};
};
}

0 comments on commit ee4385d

Please sign in to comment.