From 13f7ab647aadc317274177020ae8092e7bb91cfa Mon Sep 17 00:00:00 2001 From: tdpeuter Date: Sat, 24 Jun 2023 14:41:08 +0200 Subject: [PATCH] Add mpv config --- nixos/modules/utils/mpv/default.nix | 10 ++++++--- stow/mpv/.config/mpv/mpv.conf | 33 +++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 stow/mpv/.config/mpv/mpv.conf diff --git a/nixos/modules/utils/mpv/default.nix b/nixos/modules/utils/mpv/default.nix index f5ad08b..098e7d5 100644 --- a/nixos/modules/utils/mpv/default.nix +++ b/nixos/modules/utils/mpv/default.nix @@ -1,7 +1,11 @@ { config, system, lib, pkgs-unstable, ... }: { - home-manager.users.tdpeuter.home.packages = with pkgs-unstable; [ - mpv - ]; + home-manager.users.tdpeuter.home = { + packages = with pkgs-unstable; [ + mpv + ]; + + file.".config/mpv".source = ../../../../stow/mpv/.config/mpv; + }; } diff --git a/stow/mpv/.config/mpv/mpv.conf b/stow/mpv/.config/mpv/mpv.conf new file mode 100644 index 0000000..d2fe746 --- /dev/null +++ b/stow/mpv/.config/mpv/mpv.conf @@ -0,0 +1,33 @@ +################## +# video settings # +################## + +# Start in fullscreen mode by default +fs=yes + +# Do not close the window on exit. +keep-open=yes + +# Do not wait with showing the video window until it has loaded. (This will +# resize the window once video is loaded. Also always shows a window with +# audio.) +force-window=immediate + +# Save position on quit +save-position-on-quit=yes + +############ +# Profiles # +############ + +# Profile for music etc. +[audio] + +# Disable video output +vid=no + +# Profile for terminal-only +[terminal] + +# Terminal video +vo=tct