use options in home managers
This commit is contained in:
parent
fb41722020
commit
1cbae3f1fb
3 changed files with 116 additions and 102 deletions
173
home/firefox.nix
173
home/firefox.nix
|
|
@ -1,90 +1,93 @@
|
||||||
{
|
{lib, ...}: {
|
||||||
programs.firefox = {
|
options.enableFirefox = lib.mkEnableOption "enableFirefox";
|
||||||
enable = true;
|
config = {
|
||||||
languagePacks = [
|
programs.firefox = {
|
||||||
"ja"
|
enable = true;
|
||||||
"tr"
|
languagePacks = [
|
||||||
"en-US"
|
"ja"
|
||||||
];
|
"tr"
|
||||||
policies = {
|
"en-US"
|
||||||
DisableTelemetry = true;
|
];
|
||||||
DisableFirefoxStudies = true;
|
policies = {
|
||||||
EnableTrackingProtection = {
|
DisableTelemetry = true;
|
||||||
Value = true;
|
DisableFirefoxStudies = true;
|
||||||
Locked = true;
|
EnableTrackingProtection = {
|
||||||
Cryptomining = true;
|
Value = true;
|
||||||
Fingerprinting = true;
|
Locked = true;
|
||||||
};
|
Cryptomining = true;
|
||||||
# DisablePocket = true;
|
Fingerprinting = true;
|
||||||
DisableFirefoxAccounts = true;
|
|
||||||
DisableAccounts = true;
|
|
||||||
DisableFirefoxScreenshots = true;
|
|
||||||
StartPage = "previous-session";
|
|
||||||
# OverrideFirstRunPage = "";
|
|
||||||
# OverridePostUpdatePage = "";
|
|
||||||
# DontCheckDefaultBrowser = true;
|
|
||||||
DisplayBookmarksToolbar = "always"; # alternatives: "never" or "newtab"
|
|
||||||
# DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on"
|
|
||||||
# SearchBar = "unified"; # alternat
|
|
||||||
ExtensionSettings = with builtins; let
|
|
||||||
extension = shortId: uuid: {
|
|
||||||
name = uuid;
|
|
||||||
value = {
|
|
||||||
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
|
|
||||||
installation_mode = "normal_installed";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
in
|
# DisablePocket = true;
|
||||||
listToAttrs [
|
DisableFirefoxAccounts = true;
|
||||||
(extension "tree-style-tab" "treestyletab@piro.sakura.ne.jp")
|
DisableAccounts = true;
|
||||||
(extension "ublock-origin" "uBlock0@raymondhill.net")
|
DisableFirefoxScreenshots = true;
|
||||||
(extension "bitwarden-password-manager" "{446900e4-71c2-419f-a6a7-df9c091e268b}")
|
StartPage = "previous-session";
|
||||||
(extension "motivation-new-tab" "")
|
# OverrideFirstRunPage = "";
|
||||||
(extension "return-youtube-dislikes" "{762f9885-5a13-4abd-9c77-433dcd38b8fd}")
|
# OverridePostUpdatePage = "";
|
||||||
(extension "violentmonkey" "{aecec67f-0d10-4fa7-b7c7-609a2db280cf}")
|
# DontCheckDefaultBrowser = true;
|
||||||
# (extension "tabliss" "extension@tabliss.io")
|
DisplayBookmarksToolbar = "always"; # alternatives: "never" or "newtab"
|
||||||
# (extension "umatrix" "uMatrix@raymondhill.net")
|
# DisplayMenuBar = "default-off"; # alternatives: "always", "never" or "default-on"
|
||||||
# (extension "libredirect" "7esoorv3@alefvanoon.anonaddy.me")
|
# SearchBar = "unified"; # alternat
|
||||||
(extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
|
ExtensionSettings = with builtins; let
|
||||||
];
|
extension = shortId: uuid: {
|
||||||
# To add additional extensions, find it on addons.mozilla.org, find
|
name = uuid;
|
||||||
# the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/)
|
value = {
|
||||||
# Then, download the XPI by filling it in to the install_url template, unzip it,
|
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
|
||||||
# run `jq .browser_specific_settings.gecko.id manifest.json` or
|
installation_mode = "normal_installed";
|
||||||
# `jq .applications.gecko.id manifest.json` to get the UUID
|
};
|
||||||
};
|
};
|
||||||
profiles.default = {
|
in
|
||||||
id = 0;
|
listToAttrs [
|
||||||
name = "osbm";
|
(extension "tree-style-tab" "treestyletab@piro.sakura.ne.jp")
|
||||||
|
(extension "ublock-origin" "uBlock0@raymondhill.net")
|
||||||
|
(extension "bitwarden-password-manager" "{446900e4-71c2-419f-a6a7-df9c091e268b}")
|
||||||
|
(extension "motivation-new-tab" "")
|
||||||
|
(extension "return-youtube-dislikes" "{762f9885-5a13-4abd-9c77-433dcd38b8fd}")
|
||||||
|
(extension "violentmonkey" "{aecec67f-0d10-4fa7-b7c7-609a2db280cf}")
|
||||||
|
# (extension "tabliss" "extension@tabliss.io")
|
||||||
|
# (extension "umatrix" "uMatrix@raymondhill.net")
|
||||||
|
# (extension "libredirect" "7esoorv3@alefvanoon.anonaddy.me")
|
||||||
|
(extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
|
||||||
|
];
|
||||||
|
# To add additional extensions, find it on addons.mozilla.org, find
|
||||||
|
# the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/)
|
||||||
|
# Then, download the XPI by filling it in to the install_url template, unzip it,
|
||||||
|
# run `jq .browser_specific_settings.gecko.id manifest.json` or
|
||||||
|
# `jq .applications.gecko.id manifest.json` to get the UUID
|
||||||
|
};
|
||||||
|
profiles.default = {
|
||||||
|
id = 0;
|
||||||
|
name = "osbm";
|
||||||
|
|
||||||
userChrome = ''
|
userChrome = ''
|
||||||
#tabbrowser-tabs {
|
#tabbrowser-tabs {
|
||||||
visibility: collapse;
|
visibility: collapse;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
settings = {
|
settings = {
|
||||||
# "Open previous windows and tabs"
|
# "Open previous windows and tabs"
|
||||||
"browser.startup.page" = 3;
|
"browser.startup.page" = 3;
|
||||||
"browser.contentblocking.category" = true;
|
"browser.contentblocking.category" = true;
|
||||||
"extensions.pocket.enabled" = false;
|
"extensions.pocket.enabled" = false;
|
||||||
"extensions.screenshots.disabled" = true;
|
"extensions.screenshots.disabled" = true;
|
||||||
"browser.topsites.contile.enabled" = false;
|
"browser.topsites.contile.enabled" = false;
|
||||||
"browser.formfill.enable" = false;
|
"browser.formfill.enable" = false;
|
||||||
"browser.search.suggest.enabled" = false;
|
"browser.search.suggest.enabled" = false;
|
||||||
"browser.search.suggest.enabled.private" = false;
|
"browser.search.suggest.enabled.private" = false;
|
||||||
"browser.urlbar.suggest.searches" = false;
|
"browser.urlbar.suggest.searches" = false;
|
||||||
"browser.urlbar.showSearchSuggestionsFirst" = false;
|
"browser.urlbar.showSearchSuggestionsFirst" = false;
|
||||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
||||||
"browser.newtabpage.activity-stream.feeds.snippets" = false;
|
"browser.newtabpage.activity-stream.feeds.snippets" = false;
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
|
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = false;
|
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" = false;
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
|
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
|
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
|
||||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||||
"browser.newtabpage.activity-stream.system.showSponsored" = false;
|
"browser.newtabpage.activity-stream.system.showSponsored" = false;
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
"ui.key.menuAccessKeyFocuses" = false;
|
"ui.key.menuAccessKeyFocuses" = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
41
home/gtk.nix
41
home/gtk.nix
|
|
@ -1,22 +1,33 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
home.pointerCursor = {
|
pkgs,
|
||||||
name = "Dracula";
|
lib,
|
||||||
package = pkgs.dracula-theme;
|
...
|
||||||
gtk.enable = true;
|
}: {
|
||||||
|
options = {
|
||||||
|
# Enable the GTK theme
|
||||||
|
enableGTK = lib.mkEnableOption "enableGTK";
|
||||||
};
|
};
|
||||||
gtk = {
|
|
||||||
enable = true;
|
config = {
|
||||||
theme = {
|
home.pointerCursor = {
|
||||||
name = "Dracula";
|
name = "Dracula";
|
||||||
package = pkgs.dracula-theme;
|
package = pkgs.dracula-theme;
|
||||||
|
gtk.enable = true;
|
||||||
};
|
};
|
||||||
gtk3.extraConfig = {
|
gtk = {
|
||||||
gtk-application-prefer-dark-theme = 1;
|
enable = true;
|
||||||
gtk-cursor-theme-size=8;
|
theme = {
|
||||||
};
|
name = "Dracula";
|
||||||
gtk4.extraConfig = {
|
package = pkgs.dracula-theme;
|
||||||
gtk-application-prefer-dark-theme = 1;
|
};
|
||||||
gtk-cursor-theme-size=8;
|
gtk3.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme = 1;
|
||||||
|
gtk-cursor-theme-size = 8;
|
||||||
|
};
|
||||||
|
gtk4.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme = 1;
|
||||||
|
gtk-cursor-theme-size = 8;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,6 @@
|
||||||
|
|
||||||
home.stateVersion = config.system.stateVersion;
|
home.stateVersion = config.system.stateVersion;
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
enableGTK = config.myModules.enableKDE;
|
||||||
|
enableFirefox = config.myModules.enableKDE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue