Make handbrake configurable
This commit is contained in:
parent
818ecfa618
commit
e09de22f4b
|
@ -61,7 +61,6 @@ in
|
|||
[
|
||||
build-glove80
|
||||
gscan2pdf
|
||||
handbrake
|
||||
meslo-lg
|
||||
notify-battery
|
||||
obs-studio
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
|
||||
media = {
|
||||
gimp.enable = true;
|
||||
handbrake.enable = true;
|
||||
kdenlive.enable = true;
|
||||
pocket-casts.enable = true;
|
||||
mpv.enable = true;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./gimp.nix
|
||||
./handbrake.nix
|
||||
./kdenlive.nix
|
||||
./mpv.nix
|
||||
./pocket-casts.nix
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue