xdg mime apps
This commit is contained in:
@@ -13,5 +13,38 @@
|
|||||||
templates = null;
|
templates = null;
|
||||||
videos = null;
|
videos = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = {
|
||||||
|
# web
|
||||||
|
"text/html" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/http" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/https" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/avbout" = "firefox.desktop";
|
||||||
|
"x-scheme-handler/unknown" = "firefox.desktop";
|
||||||
|
|
||||||
|
# video
|
||||||
|
"video/mp4" = "mpv.desktop";
|
||||||
|
"video/webm" = "mpv.desktop";
|
||||||
|
"video/x-flv" = "mpv.desktop";
|
||||||
|
"video/x-matroska" = "mpv.desktop";
|
||||||
|
"video/x-ms-wmv" = "mpv.desktop";
|
||||||
|
|
||||||
|
# images
|
||||||
|
"image/jpeg" = "imv.desktop";
|
||||||
|
"image/png" = "imv.desktop";
|
||||||
|
|
||||||
|
# pdfs
|
||||||
|
"application/pdf" = "zathura.pdf";
|
||||||
|
"application/fdf" = "zathura.pdf";
|
||||||
|
"application/pdx" = "zathura.pdf";
|
||||||
|
"application/x-pdf" = "zathura.pdf";
|
||||||
|
"application/xfdf" = "zathura.pdf";
|
||||||
|
|
||||||
|
# files
|
||||||
|
"inode/directory" = "thunar.desktop";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
font-manager
|
font-manager
|
||||||
imv
|
imv
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
zathura
|
||||||
|
|
||||||
# communication
|
# communication
|
||||||
slack
|
slack
|
||||||
|
|||||||
@@ -1,20 +1,63 @@
|
|||||||
{ pkgs, inputs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
BROWSER = "firefox";
|
||||||
|
};
|
||||||
|
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox.override {
|
|
||||||
cfg.enableTridactylNative = true;
|
|
||||||
};
|
|
||||||
nativeMessagingHosts.packages = [ pkgs.tridactyl-native ];
|
|
||||||
policies = {
|
policies = {
|
||||||
DefaultDownloadDirectory = "$HOME/downloads/firefox";
|
DefaultDownloadDirectory = "$HOME/downloads/firefox";
|
||||||
|
DontCheckDefaultBrowser = true;
|
||||||
|
DisableTelemetry = true;
|
||||||
|
DisablePocket = true;
|
||||||
|
DisableFirefoxStudies = true;
|
||||||
|
|
||||||
|
DisplayBookmarksToolbar = "never";
|
||||||
|
DisplayMenuBar = "never";
|
||||||
|
|
||||||
|
OverrideFirstRunPage = "";
|
||||||
|
PromptForDownloadLocation = false;
|
||||||
|
|
||||||
|
HardwareAcceleration = true;
|
||||||
|
TranslateEnabled = true;
|
||||||
|
|
||||||
|
Homepage.StartPage = "previous-session";
|
||||||
|
|
||||||
|
UserMessaging = {
|
||||||
|
SkipOnboarding = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
FirefoxSuggest = {
|
||||||
|
WebSuggestions = false;
|
||||||
|
SponsoredSuggestions = false;
|
||||||
|
ImproveSuggest = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
EnableTrackingProtection = {
|
||||||
|
Value = true;
|
||||||
|
Cryptomining = true;
|
||||||
|
Fingerprinting = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
FirefoxHome = {
|
||||||
|
Search = true;
|
||||||
|
TopSites = true;
|
||||||
|
SponsoredTopSites = true;
|
||||||
|
Highlights = true;
|
||||||
|
Pocket = false;
|
||||||
|
SponsoredPocket = false;
|
||||||
|
Snippets = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
profiles = {
|
profiles = {
|
||||||
personal = {
|
personal = {
|
||||||
extensions = with inputs.firefox-addons; [
|
isDefault = true;
|
||||||
|
extensions = with inputs.firefox-addons.packages.${pkgs.system}; [
|
||||||
# privacy
|
# privacy
|
||||||
# clearurls
|
clearurls
|
||||||
decentraleyes
|
decentraleyes
|
||||||
|
|
||||||
# content/ad blocking
|
# content/ad blocking
|
||||||
@@ -29,7 +72,7 @@
|
|||||||
translate-web-pages
|
translate-web-pages
|
||||||
|
|
||||||
# manual use
|
# manual use
|
||||||
tridactyl
|
# tridactyl
|
||||||
bitwarden
|
bitwarden
|
||||||
];
|
];
|
||||||
settings = {
|
settings = {
|
||||||
@@ -38,35 +81,24 @@
|
|||||||
"media.ffmpeg.vaapi.enabled" = true;
|
"media.ffmpeg.vaapi.enabled" = true;
|
||||||
"widget.dmabuf.force-enabled" = true; # Required in recent Firefoxes
|
"widget.dmabuf.force-enabled" = true; # Required in recent Firefoxes
|
||||||
|
|
||||||
# Re-bind ctrl to super (would interfere with tridactyl otherwise)
|
"widget.use-xdg-desktop-portal.file-picker" = true;
|
||||||
"ui.key.accelKey" = 91;
|
|
||||||
|
|
||||||
# Hide the "sharing indicator", it's especially annoying
|
# Hide the "sharing indicator", it's especially annoying
|
||||||
# with tiling WMs on wayland
|
# with tiling WMs on wayland
|
||||||
"privacy.webrtc.legacyGlobalIndicator" = false;
|
"privacy.webrtc.legacyGlobalIndicator" = false;
|
||||||
|
|
||||||
# Actual settings
|
# Actual settings
|
||||||
"browser.bookmarks.restore_default_bookmarks" = false;
|
"browser.aboutConfig.showWarning" = false;
|
||||||
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons" = false;
|
|
||||||
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features" = false;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.snippets" = false;
|
|
||||||
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "";
|
|
||||||
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines" = "";
|
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
|
||||||
"browser.newtabpage.pinned" = false;
|
"browser.newtabpage.pinned" = false;
|
||||||
"browser.protections_panel.infoMessage.seen" = true;
|
"browser.protections_panel.infoMessage.seen" = true;
|
||||||
"browser.quitShortcut.disabled" = true;
|
"browser.quitShortcut.disabled" = true;
|
||||||
"browser.shell.checkDefaultBrowser" = false;
|
|
||||||
"browser.toolbars.bookmarks.visibility" = "never";
|
|
||||||
"browser.urlbar.suggest.openpage" = false;
|
"browser.urlbar.suggest.openpage" = false;
|
||||||
"datareporting.policy.dataSubmissionEnable" = false;
|
|
||||||
"datareporting.policy.dataSubmissionPolicyAcceptedVersion" = 2;
|
|
||||||
"extensions.htmlaboutaddons.recommendations.enabled" = false;
|
|
||||||
"extensions.pocket.enabled" = false;
|
|
||||||
"privacy.trackingprotection.enabled" = true;
|
"privacy.trackingprotection.enabled" = true;
|
||||||
"privacy.trackingprotection.socialtracking.enabled" = true;
|
"privacy.trackingprotection.socialtracking.enabled" = true;
|
||||||
|
|
||||||
|
"mousewhell.system_scroll_override" = true;
|
||||||
|
|
||||||
|
"extension.autoDisableScopes" = "0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
ls = "eza";
|
ls = "eza";
|
||||||
cat = "bat";
|
cat = "bat";
|
||||||
ps = "procs";
|
ps = "procs";
|
||||||
|
open = "xdg-open";
|
||||||
|
o = "xdg-open";
|
||||||
|
|
||||||
# cd
|
# cd
|
||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
|
|||||||
Reference in New Issue
Block a user