Move mpv config to native nix

This commit is contained in:
Thomas Avé 2026-06-02 15:15:28 +07:00
parent 03bc10d603
commit 1b3613326f
Signed by: thomasave
SSH Key Fingerprint: SHA256:bvIbWy6TO9+PdMTPzWy6dqkRlVQ3eSky+vQcc9aRIiE
2 changed files with 33 additions and 24 deletions

View File

@ -3,9 +3,38 @@
pkgs, pkgs,
... ...
}: { }: {
home.file."${config.xdg.configHome}/mpv" = { home.file."${config.xdg.configHome}/mpv/scripts".source = ./files/scripts;
source = ./files; home.file."${config.xdg.configHome}/mpv/fonts".source = ./files/fonts;
recursive = true;
programs.mpv = {
enable = true;
config = {
osc = false;
save-position-on-quit = true;
sub-auto = "fuzzy";
sub-font-size = 46;
profile = "gpu-hq";
scale = "ewa_lanczossharp";
cscale = "ewa_lanczossharp";
video-sync = "display-resample";
interpolation = true;
tscale = "oversample";
vo = "gpu";
hwdec = "auto";
force-window = true;
keep-open = true;
};
bindings = {
"Ctrl+Shift+r" = "add sub-scale +0.05";
"Ctrl+r" = "add sub-scale -0.05";
"Ctrl+Alt+r" = "set sub-scale 1";
};
profiles.Idle = {
profile-cond = ''p["idle-active"]'';
profile-restore = "copy-equal";
title = "' '";
keepaspect = false;
background = "none";
};
}; };
programs.mpv = {enable = true;};
} }

View File

@ -1,20 +0,0 @@
osc=no
save-position-on-quit=yes
sub-auto=fuzzy
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample
vo=gpu
hwdec=auto
force-window=yes
keep-open=yes
[Idle]
profile-cond=p["idle-active"]
profile-restore=copy-equal
title=' '
keepaspect=no
background=none