Extract a handbrake module
This commit is contained in:
parent
4107805044
commit
4fc348ff45
5 changed files with 24 additions and 1 deletions
21
modules/home-manager/desktop/media/handbrake.nix
Normal file
21
modules/home-manager/desktop/media/handbrake.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.homeManagerModules.desktop.media.handbrake;
|
||||
in
|
||||
{
|
||||
options.homeManagerModules.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
handbrake
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue