Firefox: Enable policy for Foxyproxy 8.10.
This commit is contained in:
parent
7cf82fbb17
commit
40e9f3bf4e
|
@ -3,7 +3,7 @@ let
|
||||||
cfg = config.module.live;
|
cfg = config.module.live;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# ISSUE: Can't find a way to import this conditionally.
|
# TODO: Can't find a way to import this conditionally.
|
||||||
# imports = [ "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix" ];
|
# imports = [ "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix" ];
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
show-size-column = true;
|
show-size-column = true;
|
||||||
show-type-column = true;
|
show-type-column = true;
|
||||||
sidebar-width = "166";
|
sidebar-width = "166";
|
||||||
sort-column = "modified";
|
sort-column = "name";
|
||||||
sort-directories-first = true;
|
sort-directories-first = true;
|
||||||
sort-order = "descending";
|
sort-order = "ascending";
|
||||||
type-format = "category";
|
type-format = "category";
|
||||||
view-type = "list";
|
view-type = "list";
|
||||||
};
|
};
|
||||||
|
@ -20,9 +20,9 @@
|
||||||
show-hidden = false;
|
show-hidden = false;
|
||||||
show-size-column = true;
|
show-size-column = true;
|
||||||
show-type-column = true;
|
show-type-column = true;
|
||||||
sort-column = "modified";
|
sort-column = "name";
|
||||||
sort-directories-first = true;
|
sort-directories-first = true;
|
||||||
sort-order = "descending";
|
sort-order = "ascending";
|
||||||
type-format = "category";
|
type-format = "category";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
default-sort-in-reverse-order = false;
|
default-sort-in-reverse-order = false;
|
||||||
default-sort-order = "name";
|
default-sort-order = "name";
|
||||||
migrated-gtk-settings = true;
|
migrated-gtk-settings = true;
|
||||||
search-filter-time-type = "last_modified";
|
search-filter-time-type = "name";
|
||||||
search-view = "list-view";
|
search-view = "list-view";
|
||||||
show-image-thumbnails = "local-only";
|
show-image-thumbnails = "local-only";
|
||||||
};
|
};
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
"alt.space" = "f6"; # Focus address bar.
|
"alt.space" = "f6"; # Focus address bar.
|
||||||
"alt.u" = "C-S-t"; # Restore closed tab.
|
"alt.u" = "C-S-t"; # Restore closed tab.
|
||||||
"alt.w" = "macro(y t)"; # Duplicate tab.
|
"alt.w" = "macro(y t)"; # Duplicate tab.
|
||||||
# "alt.W" = "macro(y t W)"; # Duplicate tab on new window. # ISSUE: Use S-w to manually detach.
|
# "alt.W" = "macro(y t W)"; # Duplicate tab on new window. # NOTE: Use S-w to manually detach.
|
||||||
"alt.x" = "C-w"; # Close tab.
|
"alt.x" = "C-w"; # Close tab.
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,7 +21,6 @@ let
|
||||||
borderSize = "${toString config.module.style.window.border}px";
|
borderSize = "${toString config.module.style.window.border}px";
|
||||||
|
|
||||||
styleRaw = pkgs.writeText "waybar-style-raw" (util.readFiles (util.ls ./style));
|
styleRaw = pkgs.writeText "waybar-style-raw" (util.readFiles (util.ls ./style));
|
||||||
# NOTE: Another option is to use var() like this: https://git.azahi.cc/nixfiles/tree/modules/firefox/default.nix#n41 https://git.azahi.cc/nixfiles/tree/modules/firefox/userContent.css
|
|
||||||
style = pkgs.replaceVars styleRaw {
|
style = pkgs.replaceVars styleRaw {
|
||||||
inherit
|
inherit
|
||||||
accent
|
accent
|
||||||
|
|
|
@ -341,57 +341,52 @@ in
|
||||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}".environment = {
|
"{446900e4-71c2-419f-a6a7-df9c091e268b}".environment = {
|
||||||
base = "https://pass.voronind.com";
|
base = "https://pass.voronind.com";
|
||||||
};
|
};
|
||||||
# ISSUE: Fork or https://github.com/foxyproxy/browser-extension/issues/132
|
"foxyproxy@eric.h.jung" = {
|
||||||
# "foxyproxy@eric.h.jung" = {
|
mode = "enable";
|
||||||
# mode = "enable";
|
sync = false;
|
||||||
# sync = false;
|
data = [
|
||||||
# data = [
|
{
|
||||||
# {
|
active = true;
|
||||||
# active = true;
|
title = "Local";
|
||||||
# title = "Local";
|
type = "socks5";
|
||||||
# type = "socks5";
|
hostname = "localhost";
|
||||||
# hostname = "localhost";
|
port = 1080;
|
||||||
# port = 1080;
|
color = "#ffffff";
|
||||||
# color = "#ffffff";
|
proxyDNS = true;
|
||||||
# proxyDNS = true;
|
include = [ ];
|
||||||
# include = [ ];
|
exclude = [ ];
|
||||||
# exclude = [ ];
|
}
|
||||||
# }
|
{
|
||||||
# {
|
active = true;
|
||||||
# active = true;
|
title = "Xray";
|
||||||
# title = "Zapret";
|
type = "socks5";
|
||||||
# type = "socks5";
|
hostname = "home.local";
|
||||||
# hostname = "10.0.0.1";
|
port = 1080;
|
||||||
# port = 1080;
|
color = "#ffff00";
|
||||||
# color = "#ff0000";
|
proxyDNS = false;
|
||||||
# proxyDNS = false;
|
include = [
|
||||||
# include = [ ];
|
{
|
||||||
# exclude = [ ];
|
active = true;
|
||||||
# }
|
pattern = "https://www.youtube.com/*";
|
||||||
# {
|
title = "YouTube";
|
||||||
# active = true;
|
type = "wildcard";
|
||||||
# title = "Xray";
|
}
|
||||||
# type = "socks5";
|
];
|
||||||
# hostname = "10.0.0.1";
|
exclude = [ ];
|
||||||
# port = 1081;
|
}
|
||||||
# color = "#ffff00";
|
{
|
||||||
# proxyDNS = false;
|
active = true;
|
||||||
# include = [ ];
|
title = "Tor";
|
||||||
# exclude = [ ];
|
type = "socks5";
|
||||||
# }
|
hostname = "home.local";
|
||||||
# {
|
port = 9150;
|
||||||
# active = true;
|
color = "#0000ff";
|
||||||
# title = "Tor";
|
proxyDNS = true;
|
||||||
# type = "socks5";
|
include = [ "*.onion" ];
|
||||||
# hostname = "10.0.0.1";
|
exclude = [ ];
|
||||||
# port = 9150;
|
}
|
||||||
# color = "#0000ff";
|
];
|
||||||
# proxyDNS = true;
|
};
|
||||||
# include = [ "*.onion" ];
|
|
||||||
# exclude = [ ];
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
# NOTE: `firefox-esr` edition is required to change search engines.
|
# NOTE: `firefox-esr` edition is required to change search engines.
|
||||||
SearchEngines = {
|
SearchEngines = {
|
||||||
|
|
|
@ -42,42 +42,4 @@
|
||||||
"mailnews.start_page.enabled" = false;
|
"mailnews.start_page.enabled" = false;
|
||||||
"pdfjs.enabledCache.state" = false;
|
"pdfjs.enabledCache.state" = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# ISSUE: https://github.com/nix-community/home-manager/issues/5775
|
|
||||||
# ISSUE: https://github.com/nix-community/home-manager/issues/5933
|
|
||||||
# settings =
|
|
||||||
# let
|
|
||||||
# safeName = builtins.replaceStrings [ "." ] [ "-" ];
|
|
||||||
#
|
|
||||||
# calendarAccounts = lib.mapAttrsToList (n: v: { n = v; }) config.home-manager.users.voronind.accounts.calendar.accounts;
|
|
||||||
# calendars = lib.foldAttrs (
|
|
||||||
# item: acc:
|
|
||||||
# let
|
|
||||||
# calendarAccountSafeName = safeName item.name;
|
|
||||||
# in
|
|
||||||
# acc
|
|
||||||
# // {
|
|
||||||
# "calendar.registry.${calendarAccountSafeName}.cache.enabled" = true;
|
|
||||||
# "calendar.registry.${calendarAccountSafeName}.calendar-main-default" = item.primary;
|
|
||||||
# "calendar.registry.${calendarAccountSafeName}.calendar-main-in-composite" = item.primary;
|
|
||||||
# "calendar.registry.${calendarAccountSafeName}.name" = item.name;
|
|
||||||
# "calendar.registry.${calendarAccountSafeName}.type" = "caldav";
|
|
||||||
# "calendar.registry.${calendarAccountSafeName}.uri" = item.remote.url;
|
|
||||||
# "calendar.registry.${calendarAccountSafeName}.username" = item.remote.userName;
|
|
||||||
# }
|
|
||||||
# ) { } calendarAccounts;
|
|
||||||
#
|
|
||||||
# contactsAccount = config.home-manager.users.voronind.accounts.contact.accounts.Home;
|
|
||||||
# contactsAccountSafeName = safeName contactsAccount.name;
|
|
||||||
# addressBookFilename = "abook-${contactsAccountSafeName}.sqlite";
|
|
||||||
# in
|
|
||||||
# calendars
|
|
||||||
# // {
|
|
||||||
# "ldap_2.servers.${contactsAccountSafeName}.carddav.url" = contactsAccount.remote.url;
|
|
||||||
# "ldap_2.servers.${contactsAccountSafeName}.carddav.username" = contactsAccount.remote.userName;
|
|
||||||
# "ldap_2.servers.${contactsAccountSafeName}.description" = contactsAccount.name;
|
|
||||||
# "ldap_2.servers.${contactsAccountSafeName}.dirType" = 102;
|
|
||||||
# "ldap_2.servers.${contactsAccountSafeName}.filename" = addressBookFilename;
|
|
||||||
# "mail.collect_addressbook" = "jscarddav://${addressBookFilename}";
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ __findFile, ... }:
|
{ __findFile, ... }:
|
||||||
{
|
{
|
||||||
# SEE: https://github.com/tmux/tmux/issues/4264
|
# SEE: https://github.com/tmux/tmux/issues/4264
|
||||||
# FIXME: Later.
|
# FIXME: Later. When you get no error on start on Android.
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
tmux = prev.tmux.overrideAttrs (old: {
|
tmux = prev.tmux.overrideAttrs (old: {
|
||||||
|
|
Loading…
Reference in a new issue