aboutsummaryrefslogtreecommitdiffstats
path: root/hm/soispha/conf/firefox
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-10-21 23:55:51 +0200
committerSoispha <soispha@vhack.eu>2023-10-21 23:55:51 +0200
commit842efea10fb631041b085af4d4a9ba7ea10ac5e4 (patch)
tree2283797b666debd4ee845292e59063beb6435a54 /hm/soispha/conf/firefox
parentbuild(flake): Update to a recent nixos-unstable version (diff)
downloadnixos-config-842efea10fb631041b085af4d4a9ba7ea10ac5e4.zip
fix(hm/conf/firefox/conf/policies): Remove policies attr name
Diffstat (limited to 'hm/soispha/conf/firefox')
-rw-r--r--hm/soispha/conf/firefox/config/policies/default.nix217
1 files changed, 107 insertions, 110 deletions
diff --git a/hm/soispha/conf/firefox/config/policies/default.nix b/hm/soispha/conf/firefox/config/policies/default.nix
index ada281d8..9aaf81b8 100644
--- a/hm/soispha/conf/firefox/config/policies/default.nix
+++ b/hm/soispha/conf/firefox/config/policies/default.nix
@@ -8,134 +8,131 @@
"de"
"sv-SE"
];
-in {
- policies = let
- mkAllowedExtension = extension: {
- name = extension.addonId;
- value = {
- installation_mode = "normal_installed";
- updates_disabled = true;
- inherit (extension) default_area;
- install_url = "file://${builtins.fetchurl {
- inherit
- (extension)
- url
- sha256
- ;
- }}";
- };
+ mkAllowedExtension = extension: {
+ name = extension.addonId;
+ value = {
+ installation_mode = "normal_installed";
+ updates_disabled = true;
+ inherit (extension) default_area;
+ install_url = "file://${builtins.fetchurl {
+ inherit
+ (extension)
+ url
+ sha256
+ ;
+ }}";
};
- allowedExtensions =
- builtins.listToAttrs
- (builtins.map mkAllowedExtension (builtins.attrValues
- extensions));
+ };
+ allowedExtensions =
+ builtins.listToAttrs
+ (builtins.map mkAllowedExtension (builtins.attrValues
+ extensions));
- mkBlockedExtension = id: {
- name = id;
- value = {
- install_mode = "blocked";
- };
+ mkBlockedExtension = id: {
+ name = id;
+ value = {
+ install_mode = "blocked";
};
- blockedExtensions = builtins.listToAttrs (builtins.map mkBlockedExtension [
- # these are the default search engines
- "addons-search-detection@mozilla.com"
- "amazon@search.mozilla.org"
- "bing@search.mozilla.org"
- "ddg@search.mozilla.org"
- "google@search.mozilla.org"
- "wikipedia@search.mozilla.org"
- ]);
-
- language_packs = builtins.listToAttrs (builtins.map
- (
- lang: {
- name = "langpack-${lang}@firefox.mozilla.org";
- value = {
- installation_mode = "normal_installed";
- install_url = "https://releases.mozilla.org/pub/firefox/releases/${config.soispha.firefox.package_version}/linux-x86_64/xpi/${lang}.xpi";
- };
- }
- )
- locals);
- in {
- # NOTE: See https://mozilla.github.io/policy-templates for documentation <2023-10-21>
+ };
+ blockedExtensions = builtins.listToAttrs (builtins.map mkBlockedExtension [
+ # these are the default search engines
+ "addons-search-detection@mozilla.com"
+ "amazon@search.mozilla.org"
+ "bing@search.mozilla.org"
+ "ddg@search.mozilla.org"
+ "google@search.mozilla.org"
+ "wikipedia@search.mozilla.org"
+ ]);
- # NixOS manages this already
- DisableAppUpdate = true;
+ language_packs = builtins.listToAttrs (builtins.map
+ (
+ lang: {
+ name = "langpack-${lang}@firefox.mozilla.org";
+ value = {
+ installation_mode = "normal_installed";
+ install_url = "https://releases.mozilla.org/pub/firefox/releases/${config.soispha.firefox.package_version}/linux-x86_64/xpi/${lang}.xpi";
+ };
+ }
+ )
+ locals);
+in {
+ # NOTE: See https://mozilla.github.io/policy-templates for documentation <2023-10-21>
- DisableFirefoxAccounts = true;
- DisableFirefoxScreenshots = true;
+ # NixOS manages this already
+ DisableAppUpdate = true;
- # KeepassXC does this for me
- DisableMasterPasswordCreation = true;
+ DisableFirefoxAccounts = true;
+ DisableFirefoxScreenshots = true;
- # I use a self-hosted services for that
- DisablePocket = true;
+ # KeepassXC does this for me
+ DisableMasterPasswordCreation = true;
- # I don't want to lose my data
- DisableProfileRefresh = true;
+ # I use a self-hosted services for that
+ DisablePocket = true;
- DisplayBookmarksToolbar = "newtab";
- DisplayMenuBar = "default-off";
+ # I don't want to lose my data
+ DisableProfileRefresh = true;
- DNSOverHTTPS = {
- Enabled = true;
- Locked = false;
- };
- # The concept of a "default browser" does not apply to my NixOS config
- DontCheckDefaultBrowser = true;
+ DisplayBookmarksToolbar = "newtab";
+ DisplayMenuBar = "default-off";
- EnableTrackingProtection = {
- Value = true;
- Locked = false;
- Cryptomining = true;
- Fingerprinting = true;
- EmailTracking = true;
- };
+ DNSOverHTTPS = {
+ Enabled = true;
+ Locked = false;
+ };
+ # The concept of a "default browser" does not apply to my NixOS config
+ DontCheckDefaultBrowser = true;
- EncryptedMediaExtensions = {
- # I want a _free_ config (and I can always just run another browser)
- Enabled = false;
- Locked = true;
- };
+ EnableTrackingProtection = {
+ Value = true;
+ Locked = false;
+ Cryptomining = true;
+ Fingerprinting = true;
+ EmailTracking = true;
+ };
- ExtensionSettings =
- {
- "*" = {
- blocked_install_message = ''
- You can't install a extension manually,
- please specify it in your NixOS configuration
- '';
- installation_mode = "blocked";
- };
- }
- // allowedExtensions
- // blockedExtensions
- // language_packs;
- ExtensionUpdate = false;
+ EncryptedMediaExtensions = {
+ # I want a _free_ config (and I can always just run another browser)
+ Enabled = false;
+ Locked = true;
+ };
- # TODO: Add handlers for the default file types <2023-10-21>
- # Handlers = {
- # };
+ ExtensionSettings =
+ {
+ "*" = {
+ blocked_install_message = ''
+ You can't install a extension manually,
+ please specify it in your NixOS configuration
+ '';
+ installation_mode = "blocked";
+ };
+ }
+ // allowedExtensions
+ // blockedExtensions
+ // language_packs;
+ ExtensionUpdate = false;
- HardwareAcceleration = true;
+ # TODO: Add handlers for the default file types <2023-10-21>
+ # Handlers = {
+ # };
- InstallAddonsPermission = {
- Allowed = [];
- Default = false;
- };
+ HardwareAcceleration = true;
- # KeepassXC and such things
- OfferToSaveLogins = false;
- PasswordManagerEnable = false;
+ InstallAddonsPermission = {
+ Allowed = [];
+ Default = false;
+ };
- PDFjs = {
- Enabled = true;
- # Don't honor documents right to be un-copy-able
- EnablePermissions = false;
- };
+ # KeepassXC and such things
+ OfferToSaveLogins = false;
+ PasswordManagerEnable = false;
- SearchBar = "unified";
- RequestedLocales = locals;
+ PDFjs = {
+ Enabled = true;
+ # Don't honor documents right to be un-copy-able
+ EnablePermissions = false;
};
+
+ SearchBar = "unified";
+ RequestedLocales = locals;
}