From d6f553d5196b7d26ca10e176c49118a431244891 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Sat, 15 Apr 2023 03:20:22 +0300 Subject: [PATCH] handle element url --- profiles/applications-setup.nix | 1 + profiles/applications/firefox.nix | 7 +++++-- profiles/applications/packages.nix | 2 -- profiles/applications/schildichat.nix | 14 ++++++++++++++ roles/desktop.nix | 1 + 5 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 profiles/applications/schildichat.nix diff --git a/profiles/applications-setup.nix b/profiles/applications-setup.nix index e6b2389..35804fc 100644 --- a/profiles/applications-setup.nix +++ b/profiles/applications-setup.nix @@ -76,6 +76,7 @@ # "text/csv" = spreadsheet; # "application/vnd.oasis.opendocument.spreadsheet" = spreadsheet; "text/plain" = editor; + "x-scheme-handler/element" = matrix; }; }; }; diff --git a/profiles/applications/firefox.nix b/profiles/applications/firefox.nix index 8253f48..b7ff9d0 100755 --- a/profiles/applications/firefox.nix +++ b/profiles/applications/firefox.nix @@ -75,7 +75,7 @@ in { "general.autoScroll" = true; "extensions.pocket.enabled" = false; "browser.startup.page" = 1; - "browser.startup.homepage" = "https://startpage.ataraxiadev.com"; + "browser.startup.homepage" = "https://ataraxiadev.com"; "toolkit.legacyUserProfileCustomizations.stylesheets" = true; "browser.search.suggest.enabled" = true; "ui.context_menus.after_mouseup" = true; @@ -98,6 +98,7 @@ in { "experiments.supported" = false; "network.allow-experiments" = false; + "network.protocol-handler.external.element" = false; # "identity.sync.tokenserver.uri" = "https://fsync.ataraxiadev.com/1.0/sync/1.5"; }; extraPrefs = "${fileContents "${pkgs.arkenfox-userjs}/share/user-js/profiles/user.js"}"; @@ -117,7 +118,7 @@ in { "signon.rememberSignons" = false; "general.autoScroll" = true; "extensions.pocket.enabled" = false; - "browser.startup.homepage" = "https://startpage.ataraxiadev.com"; + "browser.startup.homepage" = "https://ataraxiadev.com"; "toolkit.legacyUserProfileCustomizations.stylesheets" = true; "browser.search.suggest.enabled" = true; "browser.urlbar.suggest.searches" = true; @@ -144,6 +145,8 @@ in { "experiments.enabled" = false; "experiments.supported" = false; "network.allow-experiments" = false; + + "network.protocol-handler.external.element" = false; }; extraPrefs = "${fileContents "${pkgs.arkenfox-userjs}/share/user-js/profiles/user.js"}"; }; diff --git a/profiles/applications/packages.nix b/profiles/applications/packages.nix index 4923b9c..9da808a 100644 --- a/profiles/applications/packages.nix +++ b/profiles/applications/packages.nix @@ -65,7 +65,6 @@ with config.deviceSpecific; { obs-studio pinta qbittorrent - schildichat-desktop-wayland sonixd tdesktop ungoogled-chromium @@ -114,7 +113,6 @@ with config.deviceSpecific; { # ".config/Pinta" ".config/qBittorrent" # ".config/qimgv" - ".config/SchildiChat" ".config/Sonixd" # ".config/xarchiver" ".local/share/TelegramDesktop" diff --git a/profiles/applications/schildichat.nix b/profiles/applications/schildichat.nix new file mode 100644 index 0000000..4fc4112 --- /dev/null +++ b/profiles/applications/schildichat.nix @@ -0,0 +1,14 @@ +{ config, pkgs, lib, ... }: { + home-manager.users.${config.mainuser}.home.packages = [ + pkgs.schildichat-desktop-wayland + ]; + + defaultApplications.matrix = { + cmd = "${pkgs.schildichat-desktop-wayland}/bin/schildichat-desktop"; + desktop = "schildichat-desktop"; + }; + + persist.state.homeDirectories = [ + ".config/SchildiChat" + ]; +} \ No newline at end of file diff --git a/roles/desktop.nix b/roles/desktop.nix index 9fb32a2..5441c17 100644 --- a/roles/desktop.nix +++ b/roles/desktop.nix @@ -23,6 +23,7 @@ packages rclone rofi + schildichat spotify steam tor-browser