diff options
Diffstat (limited to 'lass/2configs/mpv.nix')
-rw-r--r-- | lass/2configs/mpv.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lass/2configs/mpv.nix b/lass/2configs/mpv.nix index bb068e7a1..c8b590857 100644 --- a/lass/2configs/mpv.nix +++ b/lass/2configs/mpv.nix @@ -7,12 +7,15 @@ let delete ]; - mpv = pkgs.concat "mpv" [ - pkgs.mpv - (pkgs.writeDashBin "mpv" '' - exec ${pkgs.mpv}/bin/mpv --no-config --script=${scripts} "$@" - '') - ]; + mpv = pkgs.symlinkJoin { + name = "mpv"; + paths = [ + pkgs.mpv + (pkgs.writeDashBin "mpv" '' + exec ${pkgs.mpv}/bin/mpv --no-config --script=${scripts} "$@" + '') + ]; + }; moveToDir = key: dir: pkgs.writeText "move-with-${key}.lua" '' tmp_dir = "${dir}" |