fork/home-manager
git clone https://git.julia.blue/fork/home-manager
e386ec64
master
1{ config , lib , pkgs , ...} : 2 3{ 4config = { 5programs . mpv = { 6enable = true ; 7package = pkgs . mpvDummy ; 8 9bindings = { 10WHEEL_UP = "seek 10" ; 11WHEEL_DOWN = "seek -10" ; 12"Alt+0" = "set window-scale 0.5" ; 13}; 14 15config = { 16force-window = true ; 17ytdl-format = "bestvideo+bestaudio" ; 18cache-default = 4000000 ; 19}; 20 21scriptOpts = { 22osc = { 23scalewindowed = 2.0 ; 24vidscale = false ; 25visibility = "always" ; 26}; 27}; 28 29profiles = { 30fast = { vo = "vdpau" ; }; 31"protocol.dvd" = { 32profile-desc = "profile for dvd:// streams" ; 33alang = "en" ; 34}; 35}; 36 37defaultProfiles = [ "gpu-hq" ]; 38}; 39 40test . stubs . mpvDummy = { }; 41 42nmt . script = '' 43assertFileContent \ 44home-files/.config/mpv/mpv.conf \ 45${ ./mpv-example-settings-expected-config } 46assertFileContent \ 47home-files/.config/mpv/input.conf \ 48${ ./mpv-example-settings-expected-bindings } 49assertFileContent \ 50home-files/.config/mpv/script-opts/osc.conf \ 51${ ./mpv-example-settings-expected-osc-opts } 52'' ; 53}; 54 55}