home: configure mpv as default audio player
This commit is contained in:
parent
9047aec7e9
commit
6a44432d3f
12
modules/universal/env/home-manager.nix
vendored
12
modules/universal/env/home-manager.nix
vendored
|
@ -122,7 +122,8 @@ in
|
|||
md = "obsidian.desktop";
|
||||
thumb = "org.gnome.gThumb.desktop";
|
||||
video = "vlc.desktop";
|
||||
audio = "vlc.desktop";
|
||||
audio = "mpv.desktop";
|
||||
# audio = "vlc.desktop";
|
||||
in {
|
||||
# HTML
|
||||
"text/html" = [ www ];
|
||||
|
@ -227,6 +228,7 @@ in
|
|||
</opml>
|
||||
'';
|
||||
|
||||
|
||||
# gnome feeds RSS viewer
|
||||
xdg.configFile."org.gabmus.gfeeds.json".text = builtins.toJSON {
|
||||
feeds = sysconfig.sane.feeds.rss;
|
||||
|
@ -498,6 +500,14 @@ in
|
|||
package = import ./web-browser.nix pkgs;
|
||||
};
|
||||
|
||||
mpv = {
|
||||
enable = true;
|
||||
config = {
|
||||
save-position-on-quit = true;
|
||||
keep-open = "yes";
|
||||
};
|
||||
};
|
||||
|
||||
# "command not found" will cause the command to be searched in nixpkgs
|
||||
nix-index.enable = true;
|
||||
} // cfg.programs;
|
||||
|
|
1
modules/universal/env/home-packages.nix
vendored
1
modules/universal/env/home-packages.nix
vendored
|
@ -90,6 +90,7 @@ let
|
|||
libreoffice-fresh # XXX colin: maybe don't want this on mobile
|
||||
lollypop
|
||||
mesa-demos
|
||||
{ pkg = mpv; dir = ".config/mpv/watch_later"; }
|
||||
networkmanagerapplet
|
||||
|
||||
# settings (electron app). TODO: can i manage these settings with home-manager?
|
||||
|
|
Loading…
Reference in New Issue
Block a user