From 172b3592da361c2db71c7df5c0eab6cfe4cdc833 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Sun, 6 Oct 2024 22:43:01 +0200 Subject: [PATCH] home/programs/media: add celluloid (mpv front-end) --- home/programs/media/default.nix | 2 ++ home/programs/xdg.nix | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/home/programs/media/default.nix b/home/programs/media/default.nix index 3e7711b..d9f0312 100644 --- a/home/programs/media/default.nix +++ b/home/programs/media/default.nix @@ -1,8 +1,10 @@ {pkgs, ...}: { + programs.mpv.enable = true; home.packages = [ pkgs.gnome-calculator pkgs.loupe pkgs.spotify pkgs.stremio + pkgs.celluloid ]; } diff --git a/home/programs/xdg.nix b/home/programs/xdg.nix index a0d29ba..2f7630e 100644 --- a/home/programs/xdg.nix +++ b/home/programs/xdg.nix @@ -18,6 +18,16 @@ "image/svg" = [" org.gnome.Loupe.desktop"]; "image/jpeg" = ["org.gnome.Loupe.desktop"]; "image/gif" = [" org.gnome.Loupe.desktop"]; + "video/mp4" = ["io.github.celluloid_player.Celluloid.desktop"]; + "video/avi" = ["io.github.celluloid_player.Celluloid.desktop"]; + "video/mkv" = ["io.github.celluloid_player.Celluloid.desktop"]; + }; + }; + userDirs = { + enable = true; + createDirectories = true; + extraConfig = { + XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; }; }; };