Update modules/applications.nix
This commit is contained in:
parent
35a6667cfa
commit
2ddc809118
@ -41,8 +41,8 @@ with import ../support.nix { inherit lib config; }; {
|
|||||||
desktop = "org.kde.ark";
|
desktop = "org.kde.ark";
|
||||||
};
|
};
|
||||||
mail = {
|
mail = {
|
||||||
cmd = "${pkgs.trojita}/bin/trojita";
|
cmd = "${pkgs.sylpheed}/bin/sylpheed";
|
||||||
desktop = "trojita";
|
desktop = "sylpheed";
|
||||||
};
|
};
|
||||||
text_processor = {
|
text_processor = {
|
||||||
cmd = "${pkgs.abiword}/bin/abiword";
|
cmd = "${pkgs.abiword}/bin/abiword";
|
||||||
@ -53,11 +53,11 @@ with import ../support.nix { inherit lib config; }; {
|
|||||||
desktop = "gnumeric";
|
desktop = "gnumeric";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home-manager.users.balsoft.xdg.configFile."mimeapps.list.home".text =
|
home-manager.users.balsoft.xdg.mimeApps.defaultApplications =
|
||||||
|
|
||||||
with config.defaultApplications;
|
with config.defaultApplications;
|
||||||
let
|
builtins.mapAttrs (name: value:
|
||||||
apps = builtins.mapAttrs (name: value: "${value.desktop}.desktop;") {
|
if value ? desktop then [ "${value.desktop}.desktop" ] else value) {
|
||||||
"text/html" = browser;
|
"text/html" = browser;
|
||||||
"image/*" = { desktop = "org.kde.gwenview"; };
|
"image/*" = { desktop = "org.kde.gwenview"; };
|
||||||
"application/x-bittorrent" = torrent;
|
"application/x-bittorrent" = torrent;
|
||||||
@ -81,22 +81,5 @@ with import ../support.nix { inherit lib config; }; {
|
|||||||
"text/plain" =
|
"text/plain" =
|
||||||
editor; # This actually makes Emacs an editor for everything... XDG is wierd
|
editor; # This actually makes Emacs an editor for everything... XDG is wierd
|
||||||
};
|
};
|
||||||
in genIni {
|
|
||||||
"Default Applications" = apps;
|
|
||||||
"Added Associations" = apps;
|
|
||||||
};
|
|
||||||
home-manager.users.balsoft.xdg.configFile."filetypesrc".text = genIni {
|
|
||||||
EmbedSettings = {
|
|
||||||
"embed-application/*" = false;
|
|
||||||
"embed-text/*" = false;
|
|
||||||
"embed-text/plain" = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
home-manager.users.balsoft.home.activation.mimeapps = {
|
|
||||||
before = [ ];
|
|
||||||
after = [ "linkGeneration" ];
|
|
||||||
data =
|
|
||||||
"$DRY_RUN_CMD cp ~/.config/mimeapps.list.home ~/.config/mimeapps.list";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user