Extract media packages

This commit is contained in:
Leonardo Eugênio 2022-10-22 00:03:18 -03:00
parent 690ab81d76
commit 8fb83fb5ca
3 changed files with 28 additions and 13 deletions

View File

@ -2,6 +2,11 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: {
imports = [
./media-packages.nix
];
packages.media-packages.enable = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

23
system/media-packages.nix Normal file
View File

@ -0,0 +1,23 @@
{ config, pkgs, ... }:
let
cfg = config.packages.media-packages;
in {
options.packages.media-packages = {
enable = mkEnableOption "media packages";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
yt-dlp
ffmpeg
imagemagick
mpc-cli
helvum
gimp
inkscape
kdenlive
blender
libreoffice
godot
]
};
}

View File

@ -57,19 +57,6 @@ in {
wpass
_gpg-unlock
## media
yt-dlp
ffmpeg
imagemagick
mpc-cli
helvum
gimp
inkscape
kdenlive
blender
libreoffice
godot
## games
# lutris-unwrapped
# steam # It's enabled in the system config