diff options
| author | Simon Parri <simonparri@ganzeria.com> | 2025-10-17 17:01:26 -0500 |
|---|---|---|
| committer | Simon Parri <simonparri@ganzeria.com> | 2025-10-17 17:06:27 -0500 |
| commit | 37152f3baa8593017156ea38b9a4e0ff604509e0 (patch) | |
| tree | d75baf9f335ae043ac7861cd68299fc1e192209e /modules | |
| parent | 2b9ff561507d2357c27565fe50af916a1bd242a0 (diff) | |
| download | nixos-config-37152f3baa8593017156ea38b9a4e0ff604509e0.tar.gz nixos-config-37152f3baa8593017156ea38b9a4e0ff604509e0.zip | |
modules/overlays: Add and enable MPV with MPRIS support
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/overlays/default.nix | 1 | ||||
| -rw-r--r-- | modules/overlays/mpv.nix | 8 | ||||
| -rw-r--r-- | modules/pc.nix | 2 |
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; |
