Make handbrake configurable

This commit is contained in:
Oliver Davies 2024-11-30 20:41:07 +00:00
parent 818ecfa618
commit e09de22f4b
4 changed files with 16 additions and 1 deletions

View file

@ -61,7 +61,6 @@ in
[ [
build-glove80 build-glove80
gscan2pdf gscan2pdf
handbrake
meslo-lg meslo-lg
notify-battery notify-battery
obs-studio obs-studio

View file

@ -17,6 +17,7 @@
media = { media = {
gimp.enable = true; gimp.enable = true;
handbrake.enable = true;
kdenlive.enable = true; kdenlive.enable = true;
pocket-casts.enable = true; pocket-casts.enable = true;
mpv.enable = true; mpv.enable = true;

View file

@ -1,6 +1,7 @@
{ {
imports = [ imports = [
./gimp.nix ./gimp.nix
./handbrake.nix
./kdenlive.nix ./kdenlive.nix
./mpv.nix ./mpv.nix
./pocket-casts.nix ./pocket-casts.nix

View file

@ -0,0 +1,14 @@
{
config,
lib,
pkgs,
...
}:
{
options.features.desktop.media.handbrake.enable = lib.mkEnableOption "Enable handbrake";
config = lib.mkIf config.features.desktop.media.handbrake.enable {
home.packages = with pkgs; [ handbrake ];
};
}