🧹 remove xdg-mime config

This commit is contained in:
Moritz Böhme 2022-03-23 12:43:11 +01:00
parent d75d133328
commit c69626eb37
No known key found for this signature in database
GPG key ID: 213820E2795F5CF5
2 changed files with 1 additions and 51 deletions

View file

@ -1,15 +1,8 @@
{ config, lib, pkgs, ... }:
{
imports = [
./email.nix
./firefox.nix
./kitty.nix
./rofi
./spotify.nix
./xdg-mime.nix
./zathura.nix
];
imports = [ ./email.nix ./firefox.nix ./kitty.nix ./rofi ./zathura.nix ];
home-manager.users.moritz = {
services.nextcloud-client = {
enable = true;
@ -32,7 +25,6 @@
xfce.xfconf
];
};
users.extraGroups.vboxusers.members = [ "moritz" ];
services.gvfs = {
enable = true;
package = lib.mkForce pkgs.gnome3.gvfs;

View file

@ -1,42 +0,0 @@
{ config, lib, pkgs, ... }:
let
browser = [ "firefox.desktop" ];
associations = {
"text/html" = browser;
"x-scheme-handler/http" = browser;
"x-scheme-handler/https" = browser;
"x-scheme-handler/ftp" = browser;
"x-scheme-handler/chrome" = browser;
"x-scheme-handler/about" = browser;
"x-scheme-handler/unknown" = browser;
"application/x-extension-htm" = browser;
"application/x-extension-html" = browser;
"application/x-extension-shtml" = browser;
"application/xhtml+xml" = browser;
"application/x-extension-xhtml" = browser;
"application/x-extension-xht" = browser;
};
in {
home-manager.users.moritz = {
xdg.mime.enable = true;
xdg.mimeApps.enable = true;
xdg.mimeApps.associations.added = associations;
xdg.mimeApps.defaultApplications = associations;
xdg.desktopEntries = {
firefox = {
name = "Firefox";
genericName = "Web Browser";
exec = "${pkgs.firefox}/bin/firefox %U";
terminal = false;
categories = [ "Application" "Network" "WebBrowser" ];
mimeType = [
"text/html"
"text/xml"
"x-scheme-handler/http"
"x-scheme-handler/https"
];
};
};
};
}