feat: xdg as a separate file

feat/kile-v2
Ricard Illa 2022-03-15 08:20:18 +01:00
parent 08d3d3f8d3
commit ff5624d98c
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 44 additions and 31 deletions

View File

@ -38,6 +38,7 @@
./tmux
./vitetris
./wallets
./xdg
./zsh
];
@ -178,37 +179,6 @@
services.network-manager-applet.enable = true;
xdg.mimeApps = {
enable = true;
defaultApplications = {
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = " firefox.desktop";
"x-scheme-handler/chrome" = " firefox.desktop";
"text/html" = "firefox.desktop";
"application/x-extension-htm" = "firefox.desktop";
"application/x-extension-html" = "firefox.desktop";
"application/x-extension-shtml" = "firefox.desktop";
"application/xhtml+xml" = "firefox.desktop";
"application/x-extension-xhtml" = "firefox.desktop";
"application/x-extension-xht" = "firefox.desktop";
"x-scheme-handler/tg" = "userapp-Telegram Desktop.desktop";
};
associations.added = {
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = " firefox.desktop";
"x-scheme-handler/chrome" = " firefox.desktop";
"text/html" = "firefox.desktop";
"application/x-extension-htm" = "firefox.desktop";
"application/x-extension-html" = "firefox.desktop";
"application/x-extension-shtml" = "firefox.desktop";
"application/xhtml+xml" = "firefox.desktop";
"application/x-extension-xhtml" = "firefox.desktop";
"application/x-extension-xht" = "firefox.desktop";
"x-scheme-handler/tg" = "userapp-Telegram Desktop.desktop";
};
};
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
"autoconnect" = [ "qemu:///system" ];

43
home/xdg/default.nix Normal file
View File

@ -0,0 +1,43 @@
{ config, pkgs, ... }:
{
xdg.mimeApps = {
enable = true;
# desktopEntries = {};
defaultApplications = {
"x-scheme-handler/http" = "firefox.desktop";
"x-scheme-handler/https" = " firefox.desktop";
"x-scheme-handler/chrome" = " firefox.desktop";
"text/html" = "firefox.desktop";
"application/x-extension-htm" = "firefox.desktop";
"application/x-extension-html" = "firefox.desktop";
"application/x-extension-shtml" = "firefox.desktop";
"application/xhtml+xml" = "firefox.desktop";
"application/x-extension-xhtml" = "firefox.desktop";
"application/x-extension-xht" = "firefox.desktop";
"x-scheme-handler/tg" = "userapp-Telegram Desktop.desktop";
"text/english" = "nvim.desktop";
"text/plain" = "nvim.desktop";
"text/x-makefile" = "nvim.desktop";
"text/x-c++hdr" = "nvim.desktop";
"text/x-c++src" = "nvim.desktop";
"text/x-chdr" = "nvim.desktop";
"text/x-csrc" = "nvim.desktop";
"text/x-java" = "nvim.desktop";
"text/x-moc" = "nvim.desktop";
"text/x-pascal" = "nvim.desktop";
"text/x-tcl" = "nvim.desktop";
"text/x-tex" = "nvim.desktop";
"application/x-shellscript" = "nvim.desktop";
"text/x-c" = "nvim.desktop";
"text/x-c++" = "nvim.desktop";
};
associations.added = {
"x-scheme-handler/tg" = "userapp-Telegram Desktop.desktop";
};
};
}