From 658482fbfa184d08e637f9ddbb5d4951fe151884 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 18 Jul 2023 17:09:46 +0300 Subject: [PATCH] mpv --- config/mpv/mpv.conf | 0 hosts/sakotop/configuration.nix | 1 + modules/desktop/media/default.nix | 1 + modules/desktop/media/mpv/default.nix | 25 +++++++++++++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 config/mpv/mpv.conf create mode 100644 modules/desktop/media/mpv/default.nix diff --git a/config/mpv/mpv.conf b/config/mpv/mpv.conf new file mode 100644 index 00000000..e69de29b diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index f1c29f60..84402545 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -45,6 +45,7 @@ blender.enable = true; kdenlive.enable = true; lmms.enable = true; + mpv.enable = true; }; }; hardware = { diff --git a/modules/desktop/media/default.nix b/modules/desktop/media/default.nix index 12679238..bcf13609 100644 --- a/modules/desktop/media/default.nix +++ b/modules/desktop/media/default.nix @@ -5,5 +5,6 @@ ./blender ./kdenlive ./lmms + ./mpv ]; } diff --git a/modules/desktop/media/mpv/default.nix b/modules/desktop/media/mpv/default.nix new file mode 100644 index 00000000..b2e3e426 --- /dev/null +++ b/modules/desktop/media/mpv/default.nix @@ -0,0 +1,25 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.media.mpv; +in +{ + options.modules.desktop.media.mpv = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + mpv + ]; + + home-manager.users.sako = { pkgs, ... }: { + xdg.configFile = { + mpv = { + source = ../../../../config/mpv; + recursive = true; + }; + }; + }; + }; +}