summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/overlays/default.nix1
-rw-r--r--modules/overlays/mpv.nix8
-rw-r--r--modules/pc.nix2
3 files changed, 11 insertions, 0 deletions
diff --git a/modules/overlays/default.nix b/modules/overlays/default.nix
index 5b92c6d..2c66e5e 100644
--- a/modules/overlays/default.nix
+++ b/modules/overlays/default.nix
@@ -15,6 +15,7 @@ in
{
options.this.overlays = {
emacs.enable = lib.mkEnableOption "custom-built Emacs overlay";
+ mpv.enable = lib.mkEnableOption "MPV with custom scripts";
g45_h264.enable = lib.mkEnableOption "intel-vaapi-driver with h264 support on gm45";
marsironpi.enable = lib.mkEnableOption "custom repository of packages" // { default = true; };
};
diff --git a/modules/overlays/mpv.nix b/modules/overlays/mpv.nix
new file mode 100644
index 0000000..390fd57
--- /dev/null
+++ b/modules/overlays/mpv.nix
@@ -0,0 +1,8 @@
+final: prev: {
+ mpv = (prev.mpv-unwrapped.wrapper {
+ scripts = with prev.mpvScripts; [
+ mpris
+ ];
+ mpv = prev.mpv-unwrapped;
+ });
+}
diff --git a/modules/pc.nix b/modules/pc.nix
index c211343..7e7a6d0 100644
--- a/modules/pc.nix
+++ b/modules/pc.nix
@@ -19,6 +19,8 @@ in
this.syslog.enable = !cfg.minimal;
this.envfs.enable = !cfg.minimal;
+ this.overlays.mpv.enable = !cfg.minimal;
+
services.locate = {
enable = !cfg.minimal;
pruneBindMounts = true;