Move Nix files back to the root of the project

This commit is contained in:
Oliver Davies 2025-03-29 23:19:06 +00:00
parent 52044d9995
commit 087153a16d
223 changed files with 12 additions and 12 deletions

View file

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

View file

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

View file

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

View file

@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.kdenlive.enable = mkEnableOption "Enable kdenlive";
config = mkIf config.homeManagerModules.kdenlive.enable {
home.packages = with pkgs; [ kdePackages.kdenlive ];
};
}

View file

@ -0,0 +1,19 @@
{ config, lib, ... }:
with lib;
{
options.homeManagerModules.mpv.enable = mkEnableOption "Enable mpv media player";
config = mkIf config.homeManagerModules.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,16 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.homeManagerModules.pocket-casts.enable = mkEnableOption "Enable Pocket Casts";
config = mkIf config.homeManagerModules.pocket-casts.enable {
home.packages = with pkgs; [ pocket-casts ];
};
}