Extend xdg management via home-manager
Enable management of xdg and mime. Configure mime default app associations via home-manager.
This commit is contained in:
parent
293b5684f5
commit
9085969661
19
home/xdg.nix
19
home/xdg.nix
|
@ -1,6 +1,8 @@
|
|||
{ pkgs }:
|
||||
|
||||
{
|
||||
enable = true;
|
||||
|
||||
configFile = {
|
||||
"ctags/config.ctags".source = ./files/ctags;
|
||||
"litecli/config".source = ./files/litecli;
|
||||
|
@ -76,4 +78,21 @@
|
|||
exec = "${pkgs.firefox}/bin/firefox --class=\"mailhog\" --new-instance -P mailhog https://mailhog.localhost";
|
||||
};
|
||||
};
|
||||
|
||||
mime.enable = true;
|
||||
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = {
|
||||
"application/octet-stream" = [ "vlc.desktop" ];
|
||||
"application/x-sql" = [ "nvim.desktop" ];
|
||||
"text/calendar" = [ "thunderbird.desktop" ];
|
||||
"text/html" = [ "firefox.desktop" ];
|
||||
"video/mp4" = [ "vlc.desktop" ];
|
||||
"video/mpeg" = [ "vlc.desktop" ];
|
||||
"video/webm" = [ "vlc.desktop" ];
|
||||
"video/x-matroska" = [ "vlc.desktop" ];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue