Remove password-store to use proton-pass instead

This commit is contained in:
Evie Litherland-Smith 2025-01-12 17:14:39 +00:00
parent 517352beb7
commit 65a6e2e514
3 changed files with 208 additions and 214 deletions

View file

@ -135,6 +135,7 @@
imports = [ imports = [
./home/shell/default.nix ./home/shell/default.nix
./home/scripts/default.nix ./home/scripts/default.nix
./home/gpg/default.nix
]; ];
home = { home = {
inherit username; inherit username;

View file

@ -27,6 +27,7 @@
hunspell hunspell
hunspellDicts.en_GB-large hunspellDicts.en_GB-large
wl-clipboard wl-clipboard
proton-pass
hyprpicker hyprpicker
grim grim
slurp slurp
@ -136,11 +137,9 @@
./home/hyprland.nix ./home/hyprland.nix
./home/terminal/default.nix ./home/terminal/default.nix
./home/browser/firefox.nix ./home/browser/firefox.nix
./home/browser/nyxt.nix
./home/emacs/default.nix ./home/emacs/default.nix
./home/email/default.nix ./home/email/default.nix
./home/calendar/default.nix ./home/calendar/default.nix
./home/password-store/default.nix
]; ];
home.file.${config.gtk.gtk2.configLocation}.force = true; home.file.${config.gtk.gtk2.configLocation}.force = true;
services = { services = {

View file

@ -6,220 +6,214 @@
}: }:
{ {
stylix.targets.firefox.enable = false; stylix.targets.firefox.enable = false;
programs = { programs.firefox = {
browserpass = { enable = true;
enable = true; policies = {
browsers = [ "firefox" ]; BlockAboutProfiles = true;
}; Cookies = {
firefox = { Behavior = "reject-tracker-and-partition-foreign";
enable = true; BehaviorPrivateBrowsing = "reject";
policies = { Locked = true;
BlockAboutProfiles = true;
Cookies = {
Behavior = "reject-tracker-and-partition-foreign";
BehaviorPrivateBrowsing = "reject";
Locked = true;
};
DefaultDownloadDirectory = config.xdg.userDirs.download;
DisableAppUpdate = true;
DisableFirefoxAccounts = true;
DisableFirefoxScreenshots = true;
DisableFirefoxStudies = true;
DisableFormHistory = true;
DisablePocket = true;
DisableProfileImport = true;
DisableSetDesktopBackground = true;
DisableSystemAddonUpdate = true;
DisableTelemetry = true;
DisplayMenuBar = "default-off";
DontCheckDefaultBrowser = true;
EnableTrackingProtection = {
Locked = true;
Cryptomining = true;
Fingerprinting = true;
};
ExtensionSettings = {
"queryamoid@kaply.com" = {
installation_mode = "force_installed";
install_url = "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
};
# uBlock Origin
"uBlock0@raymondhill.net" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
};
# Browserpass
"browserpass@maximbaz.com" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/browserpass-ce/latest.xpi";
};
# SimpleLogin
"addon@simplelogin" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/simplelogin/latest.xpi";
};
# Consent-O-Matic
"gdpr@cavi.au.dk" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/consent-o-matic/latest.xpi";
};
# ClearURLs
"{74145f27-f039-47ce-a470-a662b129930a}" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/clearurls/latest.xpi";
};
};
FirefoxHome = {
Search = true;
TopSites = false;
SponsoredTopSites = false;
Highlights = false;
Pocket = false;
SponsoredPocket = false;
Snippets = false;
Locked = true;
};
FirefoxSuggest = {
WebSuggestions = false;
SponsoredSuggestions = false;
ImproveSuggest = false;
Locked = true;
};
HardwareAcceleration = true;
Homepage = {
Locked = true;
StartPage = "homepage-locked";
};
NewTabPage = true;
NoDefaultBookmarks = false;
OfferToSaveLogins = false;
PasswordManagerEnabled = false;
PDFjs = {
Enabled = false;
};
Permissions = {
Autoplay = {
Default = "block-audio-video";
};
};
PictureInPicture = {
Enabled = true;
};
PopupBlocking = {
Default = true;
};
RequestedLocales = [ "en-GB" ];
SearchBar = "unified";
ShowHomeButton = true;
StartDownloadsInTempDirectory = true;
}; };
profiles.user = { DefaultDownloadDirectory = config.xdg.userDirs.download;
isDefault = true; DisableAppUpdate = true;
bookmarks = builtins.fromJSON (builtins.readFile ./bookmarks.json); DisableFirefoxAccounts = true;
settings = { DisableFirefoxScreenshots = true;
"app.shield.optoutstudies.enabled" = false; DisableFirefoxStudies = true;
"browser.startup.homepage" = lib.mkDefault "about:home"; DisableFormHistory = true;
"browser.tabs.inTitlebar" = 0; DisablePocket = true;
"browser.bookmarks.addedImportButton" = false; DisableProfileImport = true;
"browser.bookmarks.showMobileBookmarks" = false; DisableSetDesktopBackground = true;
"browser.toolbars.bookmarks.visibility" = "never"; DisableSystemAddonUpdate = true;
"browser.contentblocking.category" = "strict"; DisableTelemetry = true;
"browser.search.region" = "GB"; DisplayMenuBar = "default-off";
"browser.search.isUS" = false; DontCheckDefaultBrowser = true;
"browser.warnOnQuitShortcut" = false; EnableTrackingProtection = {
"browser.zoom.siteSpecific" = false; Locked = true;
"distribution.searchplugins.defaultLocale" = "en-GB"; Cryptomining = true;
"doh-rollout.home-region" = "GB"; Fingerprinting = true;
"dom.private-attribution.submission.enabled" = false; };
"extensions.activeThemeID" = "default-theme@mozilla.org"; ExtensionSettings = {
"extensions.formautofill.creditCards.enabled" = false; "queryamoid@kaply.com" = {
"general.useragent.locale" = "en-GB"; installation_mode = "force_installed";
"intl.accept_languages" = "en-gb,en"; install_url = "https://github.com/mkaply/queryamoid/releases/download/v0.1/query_amo_addon_id-0.1-fx.xpi";
"intl.locale.requested" = "en-gb,en";
"intl.regional_prefs.use_os_locales" = true;
"media.eme.enabled" = true;
"privacy.globalprivacycontrol.enabled" = true;
"privacy.donottrackheader.enabled" = true;
"privacy.webrtc.legacyGlobalIndicator" = false;
"signon.management.page.breach-alerts.enabled" = false;
"signon.rememberSignons" = false;
"widget.use-xdg-desktop-portal.file-picker" = 1;
"widget.use-xdg-desktop-portal.mime-handler" = 1;
"widget.use-xdg-desktop-portal.open-uri" = 1;
"browser.newtabpage.pinned" = [
{
title = "NixOS Wiki";
url = "https://wiki.nixos.org";
}
{
title = "Arch Wiki";
url = "https://wiki.archlinux.org";
}
{
title = "Hyprland Wiki";
url = "https://wiki.hyprland.org";
}
];
}; };
search = rec { # uBlock Origin
default = "DuckDuckGo"; "uBlock0@raymondhill.net" = {
privateDefault = default; installation_mode = "force_installed";
force = true; install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
order = [ };
"DuckDuckGo" # Proton Pass
"Atlas SearXNG" "78272b6fa58f4a1abaac99321d503a20@proton.me" = {
]; installation_mode = "force_installed";
engines = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/proton-pass/latest.xpi";
"Atlas SearXNG" = { };
urls = [ { template = "https://search.atlas.engineer/searxng/search?q={searchTerms}"; } ]; # SimpleLogin
definedAliases = [ "@atlas" ]; "addon@simplelogin" = {
}; installation_mode = "force_installed";
"NixOS Wiki" = { install_url = "https://addons.mozilla.org/firefox/downloads/latest/simplelogin/latest.xpi";
urls = [ { template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; } ]; };
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; # Consent-O-Matic
definedAliases = [ "gdpr@cavi.au.dk" = {
"@nix" installation_mode = "force_installed";
"@nixos" install_url = "https://addons.mozilla.org/firefox/downloads/latest/consent-o-matic/latest.xpi";
"@nixoswiki" };
]; # ClearURLs
}; "{74145f27-f039-47ce-a470-a662b129930a}" = {
"Arch Wiki" = { installation_mode = "force_installed";
urls = [ { template = "https://wiki.archlinux.org/index.php?search={searchTerms}"; } ]; install_url = "https://addons.mozilla.org/firefox/downloads/latest/clearurls/latest.xpi";
definedAliases = [ };
"@aw" };
"@arch" FirefoxHome = {
"@archwiki" Search = true;
]; TopSites = false;
}; SponsoredTopSites = false;
"GitHub" = { Highlights = false;
urls = [ { template = "https://github.com/search?q={searchTerms}"; } ]; Pocket = false;
definedAliases = [ SponsoredPocket = false;
"@gh" Snippets = false;
"@git" Locked = true;
"@github" };
]; FirefoxSuggest = {
}; WebSuggestions = false;
"FlatHub" = { SponsoredSuggestions = false;
url = [ { template = "https://flathub.org/apps/search?q={searchTerms}"; } ]; ImproveSuggest = false;
definedAliases = [ Locked = true;
"@flat" };
"@fthub" HardwareAcceleration = true;
"@flathub" Homepage = {
]; Locked = true;
}; StartPage = "homepage-locked";
"NixOS Packages" = { };
urls = [ NewTabPage = true;
{ NoDefaultBookmarks = false;
template = "http://search.nixos.org/packages?channel=unstable&size=50&sort=relevance&type=packages&query={searchTerms}"; OfferToSaveLogins = false;
} PasswordManagerEnabled = false;
]; PDFjs = {
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; Enabled = false;
definedAliases = [ "@nixpkgs" ]; };
}; Permissions = {
"PyPI packages" = { Autoplay = {
urls = [ { template = "https://pypi.org/search/?q={searchTerms}"; } ]; Default = "block-audio-video";
definedAliases = [ "@pypi" ]; };
}; };
PictureInPicture = {
Enabled = true;
};
PopupBlocking = {
Default = true;
};
RequestedLocales = [ "en-GB" ];
SearchBar = "unified";
ShowHomeButton = true;
StartDownloadsInTempDirectory = true;
};
profiles.user = {
isDefault = true;
bookmarks = builtins.fromJSON (builtins.readFile ./bookmarks.json);
settings = {
"app.shield.optoutstudies.enabled" = false;
"browser.startup.homepage" = lib.mkDefault "about:home";
"browser.tabs.inTitlebar" = 0;
"browser.bookmarks.addedImportButton" = false;
"browser.bookmarks.showMobileBookmarks" = false;
"browser.toolbars.bookmarks.visibility" = "never";
"browser.contentblocking.category" = "strict";
"browser.search.region" = "GB";
"browser.search.isUS" = false;
"browser.warnOnQuitShortcut" = false;
"browser.zoom.siteSpecific" = false;
"distribution.searchplugins.defaultLocale" = "en-GB";
"doh-rollout.home-region" = "GB";
"dom.private-attribution.submission.enabled" = false;
"extensions.activeThemeID" = "default-theme@mozilla.org";
"extensions.formautofill.creditCards.enabled" = false;
"general.useragent.locale" = "en-GB";
"intl.accept_languages" = "en-gb,en";
"intl.locale.requested" = "en-gb,en";
"intl.regional_prefs.use_os_locales" = true;
"media.eme.enabled" = true;
"privacy.globalprivacycontrol.enabled" = true;
"privacy.donottrackheader.enabled" = true;
"privacy.webrtc.legacyGlobalIndicator" = false;
"signon.management.page.breach-alerts.enabled" = false;
"signon.rememberSignons" = false;
"widget.use-xdg-desktop-portal.file-picker" = 1;
"widget.use-xdg-desktop-portal.mime-handler" = 1;
"widget.use-xdg-desktop-portal.open-uri" = 1;
"browser.newtabpage.pinned" = [
{
title = "NixOS Wiki";
url = "https://wiki.nixos.org";
}
{
title = "Arch Wiki";
url = "https://wiki.archlinux.org";
}
{
title = "Hyprland Wiki";
url = "https://wiki.hyprland.org";
}
];
};
search = rec {
default = "DuckDuckGo";
privateDefault = default;
force = true;
order = [
"DuckDuckGo"
"Atlas SearXNG"
];
engines = {
"Atlas SearXNG" = {
urls = [ { template = "https://search.atlas.engineer/searxng/search?q={searchTerms}"; } ];
definedAliases = [ "@atlas" ];
};
"NixOS Wiki" = {
urls = [ { template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; } ];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [
"@nix"
"@nixos"
"@nixoswiki"
];
};
"Arch Wiki" = {
urls = [ { template = "https://wiki.archlinux.org/index.php?search={searchTerms}"; } ];
definedAliases = [
"@aw"
"@arch"
"@archwiki"
];
};
"GitHub" = {
urls = [ { template = "https://github.com/search?q={searchTerms}"; } ];
definedAliases = [
"@gh"
"@git"
"@github"
];
};
"FlatHub" = {
url = [ { template = "https://flathub.org/apps/search?q={searchTerms}"; } ];
definedAliases = [
"@flat"
"@fthub"
"@flathub"
];
};
"NixOS Packages" = {
urls = [
{
template = "http://search.nixos.org/packages?channel=unstable&size=50&sort=relevance&type=packages&query={searchTerms}";
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@nixpkgs" ];
};
"PyPI packages" = {
urls = [ { template = "https://pypi.org/search/?q={searchTerms}"; } ];
definedAliases = [ "@pypi" ];
}; };
}; };
}; };