diff --git a/system/media-packages.nix b/system/media-packages.nix index 182ef4c..d3c4255 100644 --- a/system/media-packages.nix +++ b/system/media-packages.nix @@ -1,12 +1,12 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: let cfg = config.packages.media-packages; in { options.packages.media-packages = { - enable = mkEnableOption "media packages"; + enable = lib.mkEnableOption "media packages"; }; - config = mkIf cfg.enable { - home.packages = with pkgs; [ + config = lib.mkIf cfg.enable { + environment.systemPackages = with pkgs; [ yt-dlp ffmpeg imagemagick @@ -18,6 +18,6 @@ in { blender libreoffice godot - ] + ]; }; }