Group modules into feature directories

This commit is contained in:
Oliver Davies 2024-11-26 08:40:00 +00:00
parent 0baed7e6f6
commit 9782272a76
49 changed files with 244 additions and 83 deletions

View file

@ -0,0 +1,8 @@
{
imports = [
./gimp.nix
./kdenlive.nix
./mpv.nix
./pocket-casts.nix
];
}

View file

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

View file

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

View file

@ -0,0 +1,17 @@
{ config, lib, ... }:
{
options.features.desktop.media.mpv.enable = lib.mkEnableOption "Enable mpv media player";
config = lib.mkIf config.features.desktop.media.mpv.enable {
programs.mpv = {
enable = true;
# https://github.com/mpv-player/mpv/blob/master/etc/input.conf
bindings = {
"DOWN" = "add volume -5";
"UP" = "add volume 5";
};
};
};
}

View file

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