diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-07-20 00:52:31 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-07-20 00:52:31 +0300 |
commit | 284d14147ab00f550be1777d5ec0f9ee36a04bd5 (patch) | |
tree | 0bdb5cf55a6fbb918fb63ee4b7916086849ff1e0 /modules | |
parent | 2023-07-16 (diff) |
2023-07-20
Diffstat (limited to 'modules')
-rw-r--r-- | modules/common/profiles/headful.nix | 1 | ||||
-rw-r--r-- | modules/nixos/common/xdg.nix | 44 | ||||
-rw-r--r-- | modules/nixos/matrix/dendrite.nix | 6 | ||||
-rw-r--r-- | modules/nixos/unbound.nix | 2 |
4 files changed, 36 insertions, 17 deletions
diff --git a/modules/common/profiles/headful.nix b/modules/common/profiles/headful.nix index a1bb7d6..935da31 100644 --- a/modules/common/profiles/headful.nix +++ b/modules/common/profiles/headful.nix @@ -22,6 +22,7 @@ in { openssh.client.enable = true; password-store.enable = true; vscode.enable = true; + zathura.enable = true; }; hm = { diff --git a/modules/nixos/common/xdg.nix b/modules/nixos/common/xdg.nix index fb762ab..b02c0ae 100644 --- a/modules/nixos/common/xdg.nix +++ b/modules/nixos/common/xdg.nix @@ -42,47 +42,65 @@ with lib; { (mkIf this.isHeadful { mimeApps = { enable = true; + # https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types defaultApplications = mkMerge (mapAttrsToList (n: v: genAttrs v (_: ["${n}.desktop"])) { emacsclient = [ "application/json" + "application/ld+json" "application/vnd.ms-publisher" + "application/x-c" "application/x-desktop" - "application/x-shellscript" - "application/x-trash" - "application/x-wine-extension-ini" + "application/x-httpd-php" + "application/x-sh" + "application/x-tex" + "application/xhtml+xml" "application/xml" + "text/css" + "text/csv" + "text/javascript" "text/markdown" "text/plain" + "text/x-lisp" ]; firefox = [ "text/html" "x-scheme-handler/http" "x-scheme-handler/https" ]; - imv = [ - "image/bmp" - "image/gif" - "image/jpeg" - "image/jpg" - "image/png" - "image/svg+xml" - "image/tiff" - "image/webp" - ]; mpv = [ + "audio/3gpp" + "audio/3gpp2" "audio/aac" "audio/flac" "audio/mp3" + "audio/mpeg" "audio/ogg" + "audio/opus" "audio/wav" "audio/webm" + "image/avif" + "image/bmp" + "image/gif" + "image/jpeg" + "image/jpg" + "image/png" + "image/tiff" + "image/vnd.microsoft.icon" + "image/webp" "video/mkv" + "video/mp2t" "video/mp4" + "video/mpeg" "video/ogg" "video/webm" "video/x-matroska" + "video/x-msvideo" + ]; + "org.pwmt.zathura" = [ + "application/pdf" + "application/epub+zip" ]; }); }; diff --git a/modules/nixos/matrix/dendrite.nix b/modules/nixos/matrix/dendrite.nix index d7c7b18..efeef3c 100644 --- a/modules/nixos/matrix/dendrite.nix +++ b/modules/nixos/matrix/dendrite.nix @@ -77,21 +77,21 @@ in { ]; }; - # Silence annoying errors when connecting to poorly configured federated + # Silence annoying errors when connecting to faulty federated # homeservers. promtail.filters = [ { match = { selector = ''{syslog_identifier="dendrite"} |~ ".*Failed to fetch key for server.*"''; action = "drop"; - drop_counter_reason = "noisy_error"; + drop_counter_reason = "noise"; }; } { match = { selector = ''{syslog_identifier="dendrite"} |~ ".*could not download key for.*"''; action = "drop"; - drop_counter_reason = "noisy_error"; + drop_counter_reason = "noise"; }; } ]; diff --git a/modules/nixos/unbound.nix b/modules/nixos/unbound.nix index c9d45f2..bbf91ac 100644 --- a/modules/nixos/unbound.nix +++ b/modules/nixos/unbound.nix @@ -35,7 +35,7 @@ in { # [1]: https://github.com/NLnetLabs/unbound/commit/d7e776114114c16816570e48ab3a27eedc401a0e selector = ''{syslog_identifier="unbound"} |~ ".*could not SSL_read crypto.*"''; action = "drop"; - drop_counter_reason = "noisy_error"; + drop_counter_reason = "noise"; }; } ]; |