My first module

This commit is contained in:
Yorick Barbanneau 2023-12-25 21:54:04 +01:00
parent cb37b7882d
commit 1d907edb1c
5 changed files with 26 additions and 9 deletions

View file

@ -29,15 +29,6 @@ xkb_symbols "us-intl-winmax" {
}; };
}; };
home.packages = with pkgs; [
kdenlive
ffmpeg-full
frei0r
inkscape
];
home.file.".local/bin/create_conf".source = ./files/create_conf;
imports = [ imports = [
../qutebrowser ../qutebrowser
]; ];

View file

@ -0,0 +1,19 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.modules.video.kdenlive;
in
{
options.modules.video.kdenlive = {
enable = mkEnableOption "enable Kdenlive video editor";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
kdenlive
ffmpeg-full
frei0r
inkscape
];
home.file.".local/bin/create_conf".source = ./files/create_conf;
};
}

5
hosts/morty/home.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }: {
config.modules = {
video.kdenlive.enable = true;
};
}

View file

@ -72,7 +72,9 @@
]; ];
imports = [ imports = [
../hosts/${hostname}/home.nix
../home-manager/cli ../home-manager/cli
../home-manager/kdenlive/default.nix
] ++ (if hostConfig.desktop then ] ++ (if hostConfig.desktop then
[ [
../home-manager/desktop ../home-manager/desktop