From 987d676ed1caeac3190839e98aaf0bc3ffbbed72 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 9 Apr 2023 17:24:23 +0530 Subject: [PATCH] use mpv config for celluloid --- home/programs/default.nix | 1 - home/programs/mpv.nix | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home/programs/default.nix b/home/programs/default.nix index 4945458..b553a1b 100644 --- a/home/programs/default.nix +++ b/home/programs/default.nix @@ -22,7 +22,6 @@ home.packages = with pkgs; [ _1password-gui - celluloid discord evince git-crypt diff --git a/home/programs/mpv.nix b/home/programs/mpv.nix index 3ae22f0..b0f19a0 100644 --- a/home/programs/mpv.nix +++ b/home/programs/mpv.nix @@ -1,4 +1,10 @@ -{ pkgs, ... }: { +{ config, pkgs, ... }: { + home.packages = with pkgs; [ celluloid ]; + dconf.settings = { + "io/github/celluloid-player/celluloid" = { + mpv-config-file = "file://${config.home.homeDirectory}/${config.xdg.configFile."mpv/mpv.conf".target}"; + }; + }; programs.mpv = { enable = true; package = pkgs.mpv.override { youtubeSupport = true; };