ctucx.git: nixfiles

ctucx' nixfiles

commit 9eea0030bfadb32aae2ba250c3abc886ed928d9d
parent 0f3ebfe9f765f3aadc92276f52914c18722543b7
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 15 Nov 2024 17:50:48 +0100

configurations/linux/programs/mpv: use `celluloid` on when gnome is enabled
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/configurations/linux/programs/mpv.nix b/configurations/linux/programs/mpv.nix
@@ -13,7 +13,11 @@ in {
 
   config = lib.mkIf cfg.enable {
     home-manager.users.leah = {
-      programs = {
+      home.packages = lib.mkIf config.ctucxConfig.wm.gnome.enable [
+        pkgs.celluloid
+      ];
+
+      programs = lib.mkIf (config.ctucxConfig.wm.gnome.enable != true) {
         mpv = {
           enable  = true;
           scripts = [

@@ -22,7 +26,7 @@ in {
         };
       };
 
-      xdg = {
+      xdg = lib.mkIf (config.ctucxConfig.wm.gnome.enable != true) {
         desktopEntries = {
           mpv = {
             name        = "mpv Media Player";