# nixos-config - My current NixOS configuration # # Copyright (C) 2025 Benedikt Peetz # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of my nixos-config. # # You should have received a copy of the License along with this program. # If not, see . { config, lib, pkgs, ... }: let cfg = config.soispha.programs.mpv; in { options.soispha.programs.mpv = { enable = lib.mkEnableOption "mpv"; }; config.home-manager.users.soispha = lib.mkIf cfg.enable { programs.mpv = { enable = true; bindings = { q = "quit 0"; "Ctrl+c" = "quit 1"; "Shift+q" = "quit-watch-later 1"; }; config = { osd-bar = true; border = false; }; scriptOpts = { osc = { scalewindowed = 0.8; hidetimeout = 300; }; thumbfast = { hwdec = true; network = false; spawn_first = false; max_height = 250; max_width = 250; }; }; scripts = with pkgs.mpvScripts; [ thumbfast ]; }; }; }