Start firefox in sway config
This commit is contained in:
parent
8dfa23a18d
commit
40fced7c29
2 changed files with 77 additions and 65 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
ff2mpv = pkgs.stdenv.mkDerivation rec {
|
ff2mpv-host = pkgs.stdenv.mkDerivation rec {
|
||||||
pname = "ff2mpv";
|
pname = "ff2mpv";
|
||||||
version = "3.9.1";
|
version = "3.9.1";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
|
@ -21,9 +21,78 @@ let
|
||||||
cp ff2mpv.json $out/lib/mozilla/native-messaging-hosts
|
cp ff2mpv.json $out/lib/mozilla/native-messaging-hosts
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
ffPackage = pkgs.firefox.override {
|
||||||
|
extraNativeMessagingHosts = [ ff2mpv-host ];
|
||||||
|
pkcs11Modules = [ pkgs.eid-mw ];
|
||||||
|
forceWayland = true;
|
||||||
|
extraPolicies = {
|
||||||
|
DisableFirefoxStudies = true;
|
||||||
|
DisablePocket = true;
|
||||||
|
DisableTelemetry = true;
|
||||||
|
DisableFirefoxAccounts = true;
|
||||||
|
FirefoxHome = { Pocket = false; Snippets = false; };
|
||||||
|
OfferToSaveLogins = false;
|
||||||
|
UserMessaging = { SkipOnboarding = true; ExtensionRecommendations = false; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
belgium-eid = pkgs.nur.repos.rycee.firefox-addons.buildFirefoxXpiAddon rec {
|
||||||
|
pname = "belgium-eid";
|
||||||
|
version = "1.0.32";
|
||||||
|
addonId = "belgiumeid@eid.belgium.be";
|
||||||
|
url = "https://addons.mozilla.org/firefox/downloads/file/3736679/eid_belgie-${version}-fx.xpi";
|
||||||
|
sha256 = "t2zbE58IuHeAlM91lNX4rbiWLzt5sQq350b1PRdSY7w=";
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://eid.belgium.be/";
|
||||||
|
description = "Use the Belgian electronic identity card (eID) in Firefox";
|
||||||
|
license = licenses.lgpl3;
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
better-tweetdeck = pkgs.nur.repos.rycee.firefox-addons.buildFirefoxXpiAddon rec {
|
||||||
|
pname = "better-tweetdeck";
|
||||||
|
version = "4.7.2";
|
||||||
|
addonId = "BetterTweetDeck@erambert.me";
|
||||||
|
url = "https://addons.mozilla.org/firefox/downloads/file/3897452/better_tweetdeck-${version}-fx.xpi";
|
||||||
|
sha256 = "zme93hAAaxIkKg7dO+SVhv1XU7dTzMWZlrd237uZ1zg=";
|
||||||
|
meta = with lib; {
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
ff2mpv = pkgs.nur.repos.rycee.firefox-addons.buildFirefoxXpiAddon rec {
|
||||||
|
pname = "ff2mpv";
|
||||||
|
version = "3.9.1";
|
||||||
|
addonId = "ff2mpv@yossarian.net";
|
||||||
|
url = "https://addons.mozilla.org/firefox/downloads/file/3874208/ff2mpv-${version}-fx.xpi";
|
||||||
|
sha256 = "AJO9h2jv/VmqlfShu8q7VqJ7N+bGBtippaODZeCCM6I=";
|
||||||
|
meta = with lib; {
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
zotero-connector = pkgs.nur.repos.rycee.firefox-addons.buildFirefoxXpiAddon rec {
|
||||||
|
pname = "zotero-connector";
|
||||||
|
version = "5.0.92";
|
||||||
|
addonId = "zotero@chnm.gmu.edu";
|
||||||
|
url = "https://download.zotero.org/connector/firefox/release/Zotero_Connector-${version}.xpi";
|
||||||
|
sha256 = "DfaDjjgJiSGJ0q9ScStAVRN3IcH8HY30K7IssuHZi2A=";
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://www.zotero.org";
|
||||||
|
description = "Save references to Zotero from your web browser";
|
||||||
|
license = licenses.agpl3;
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.chvp.graphical.firefox.enable = lib.mkEnableOption "firefox";
|
options.chvp.graphical.firefox = {
|
||||||
|
enable = lib.mkEnableOption "firefox";
|
||||||
|
package = lib.mkOption {
|
||||||
|
description = "Final used firefox package";
|
||||||
|
default = ffPackage;
|
||||||
|
readOnly = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.chvp.graphical.firefox.enable {
|
config = lib.mkIf config.chvp.graphical.firefox.enable {
|
||||||
chvp.base.zfs.homeLinks = [
|
chvp.base.zfs.homeLinks = [
|
||||||
|
@ -38,74 +107,17 @@ in
|
||||||
};
|
};
|
||||||
firefox = {
|
firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.firefox.override {
|
package = ffPackage;
|
||||||
extraNativeMessagingHosts = [ ff2mpv ];
|
|
||||||
pkcs11Modules = [ pkgs.eid-mw ];
|
|
||||||
forceWayland = true;
|
|
||||||
extraPolicies = {
|
|
||||||
DisableFirefoxStudies = true;
|
|
||||||
DisablePocket = true;
|
|
||||||
DisableTelemetry = true;
|
|
||||||
DisableFirefoxAccounts = true;
|
|
||||||
FirefoxHome = { Pocket = false; Snippets = false; };
|
|
||||||
OfferToSaveLogins = false;
|
|
||||||
UserMessaging = { SkipOnboarding = true; ExtensionRecommendations = false; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
(buildFirefoxXpiAddon rec {
|
belgium-eid
|
||||||
pname = "belgium-eid";
|
better-tweetdeck
|
||||||
version = "1.0.32";
|
|
||||||
addonId = "belgiumeid@eid.belgium.be";
|
|
||||||
url = "https://addons.mozilla.org/firefox/downloads/file/3736679/eid_belgie-${version}-fx.xpi";
|
|
||||||
sha256 = "t2zbE58IuHeAlM91lNX4rbiWLzt5sQq350b1PRdSY7w=";
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://eid.belgium.be/";
|
|
||||||
description = "Use the Belgian electronic identity card (eID) in Firefox";
|
|
||||||
license = licenses.lgpl3;
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
(buildFirefoxXpiAddon rec {
|
|
||||||
pname = "better-tweetdeck";
|
|
||||||
version = "4.7.2";
|
|
||||||
addonId = "BetterTweetDeck@erambert.me";
|
|
||||||
url = "https://addons.mozilla.org/firefox/downloads/file/3897452/better_tweetdeck-${version}-fx.xpi";
|
|
||||||
sha256 = "zme93hAAaxIkKg7dO+SVhv1XU7dTzMWZlrd237uZ1zg=";
|
|
||||||
meta = with lib; {
|
|
||||||
license = licenses.mit;
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
browserpass
|
browserpass
|
||||||
decentraleyes
|
decentraleyes
|
||||||
(buildFirefoxXpiAddon rec {
|
ff2mpv
|
||||||
pname = "ff2mpv";
|
|
||||||
version = "3.9.1";
|
|
||||||
addonId = "ff2mpv@yossarian.net";
|
|
||||||
url = "https://addons.mozilla.org/firefox/downloads/file/3874208/ff2mpv-${version}-fx.xpi";
|
|
||||||
sha256 = "AJO9h2jv/VmqlfShu8q7VqJ7N+bGBtippaODZeCCM6I=";
|
|
||||||
meta = with lib; {
|
|
||||||
license = licenses.mit;
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
https-everywhere
|
https-everywhere
|
||||||
ublock-origin
|
ublock-origin
|
||||||
umatrix
|
umatrix
|
||||||
(buildFirefoxXpiAddon rec {
|
zotero-connector
|
||||||
pname = "zotero-connector";
|
|
||||||
version = "5.0.92";
|
|
||||||
addonId = "zotero@chnm.gmu.edu";
|
|
||||||
url = "https://download.zotero.org/connector/firefox/release/Zotero_Connector-${version}.xpi";
|
|
||||||
sha256 = "DfaDjjgJiSGJ0q9ScStAVRN3IcH8HY30K7IssuHZi2A=";
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://www.zotero.org";
|
|
||||||
description = "Save references to Zotero from your web browser";
|
|
||||||
license = licenses.agpl3;
|
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
profiles.default.settings = {
|
profiles.default.settings = {
|
||||||
"browser.aboutConfig.showWarning" = false;
|
"browser.aboutConfig.showWarning" = false;
|
||||||
|
|
|
@ -155,7 +155,7 @@ in
|
||||||
default_border pixel
|
default_border pixel
|
||||||
|
|
||||||
workspace 1
|
workspace 1
|
||||||
exec ${pkgs.qutebrowser}/bin/qutebrowser
|
exec ${config.chvp.graphical.firefox.package}/bin/firefox
|
||||||
'' + (lib.optionalString config.chvp.programs.element.enable ''
|
'' + (lib.optionalString config.chvp.programs.element.enable ''
|
||||||
workspace 3
|
workspace 3
|
||||||
exec ${pkgs.element-desktop-wayland}/bin/element-desktop
|
exec ${pkgs.element-desktop-wayland}/bin/element-desktop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue