move obs config to home level

This commit is contained in:
ulic-youthlic 2025-02-01 18:13:10 +08:00
parent 354cf68d3d
commit 6dd9ceb771
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 28 additions and 14 deletions

View file

@ -24,6 +24,7 @@
sops.enable = true;
mpv.enable = true;
atuin.enable = true;
obs.enable = true;
};
david = {
@ -36,13 +37,6 @@
home.homeDirectory = "/home/${unixName}";
home.stateVersion = "24.11";
programs.home-manager.enable = true;
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-source-record
input-overlay
];
};
home.packages = with pkgs; [
tealdeer

View file

@ -33,6 +33,7 @@
kvm.enable = true;
atuin.enable = true;
thunderbird.enable = true;
obs.enable = true;
};
david = {
@ -45,13 +46,6 @@
home.homeDirectory = "/home/${unixName}";
home.stateVersion = "24.11";
programs.home-manager.enable = true;
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-source-record
input-overlay
];
};
home.packages = with pkgs; [
tealdeer
ripgrep

View file

@ -29,6 +29,7 @@
./swaync.nix
./swaylock.nix
./thunderbird.nix
./obs.nix
];
options = {

25
home/modules/obs.nix Normal file
View file

@ -0,0 +1,25 @@
{
pkgs,
config,
lib,
...
}:
let
cfg = config.youthlic.programs.obs;
in
{
options = {
youthlic.programs.obs = {
enable = lib.mkEnableOption "obs";
};
};
config = lib.mkIf cfg.enable {
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
obs-source-record
input-overlay
];
};
};
}