mpv: specify config by sane.fs instead of home-manager

This commit is contained in:
Colin 2023-01-27 08:11:59 +00:00
parent 4603f0fd8e
commit 840c2feba5

View File

@ -1,13 +1,11 @@
{ config, lib, ... }:
{ config, lib, sane-lib, ... }:
lib.mkIf config.sane.home-manager.enable
{
home-manager.users.colin.programs.mpv = {
enable = true;
config = {
save-position-on-quit = true;
keep-open = "yes";
};
};
# format is <key>=%<length>%<value>
sane.fs."/home/colin/.config/mpv/mpv.conf" = sane-lib.fs.wantedText ''
save-position-on-quit=%3%yes
keep-open=%3%yes
'';
}