diff --git a/system/configuration.nix b/system/configuration.nix index 534f23f..7ba714e 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -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; diff --git a/system/media-packages.nix b/system/media-packages.nix new file mode 100644 index 0000000..182ef4c --- /dev/null +++ b/system/media-packages.nix @@ -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 + ] + }; +} diff --git a/user/home.nix b/user/home.nix index bafe001..6074234 100644 --- a/user/home.nix +++ b/user/home.nix @@ -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