Compare commits

..

2 commits

Author SHA1 Message Date
e3fc26134e
update commits 2024-11-15 15:27:29 -05:00
6b3b723722
get extraPrefs working for nix firefox 2024-11-15 15:27:19 -05:00
4 changed files with 52 additions and 18 deletions

View file

@ -3,7 +3,7 @@
(url "https://git.savannah.gnu.org/git/guix.git") (url "https://git.savannah.gnu.org/git/guix.git")
(branch "master") (branch "master")
(commit (commit
"07cd046c209f192032b425d2ee44f6025bff63a1") "abc3eb33191b9df5e6e44462501606f5e0dd3a92")
(introduction (introduction
(make-channel-introduction (make-channel-introduction
"9edb3f66fd807b096b48283debdcddccfea34bad" "9edb3f66fd807b096b48283debdcddccfea34bad"
@ -14,7 +14,7 @@
(url "https://gitlab.com/nonguix/nonguix.git") (url "https://gitlab.com/nonguix/nonguix.git")
(branch "master") (branch "master")
(commit (commit
"3b78eca656cf8a088ca8699a0563e67e2b61f2ac") "99574ff94b6fb97794ba720b6fdadf470963dbdc")
(introduction (introduction
(make-channel-introduction (make-channel-introduction
"897c1a470da759236cc11798f4e0a5f7d4d59fbc" "897c1a470da759236cc11798f4e0a5f7d4d59fbc"

View file

@ -60,11 +60,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1730651795, "lastModified": 1731684989,
"narHash": "sha256-XGYmN3WdyGU8FasWLPjL1Yvm9L9GJ0h62fMgCOPyvo0=", "narHash": "sha256-FQdoHR4vqYZlk2qp1jD3rtKufseLiPFr8rctGNY0d5Y=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5012ef7926747f739c65bd2e1ceff96da30fb3b8", "rev": "1c6112d535e8f51e40d8f68eb0565afb2944ebba",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -8,11 +8,44 @@
Value = true; Value = true;
Status = "locked"; Status = "locked";
}; };
nixGL = import ./nixGL.nix { inherit pkgs nixgl; };
in in
{ {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.firefox.override {
extraPrefs = ''
//
// Automatically click cookiebanners although uBlock Origin might block them
lockPref("cookiebanners.bannerClicking.enabled", true);
lockPref("cookiebanners.service.mode", 2);
lockPref("cookiebanners.service.mode.privateBrowsing", 2);
// DNT although PrivacyBadger from policy handles this
lockPref("privacy.donottrackheader.enabled", true);
lockPref("privacy.donottrackheader.value", 1);
// Fingerprinting
lockPref("privacy.fingerprintingProtection", true);
pref(
"privacy.fingerprintingProtection.overrides",
"+AllTargets,-KeyboardEvents,-SpeechSynthesis,-CSSPrefersColorScheme,-CSSPrefersReducedMotion,-NavigatorUserAgent,-JSDateTimeUTC,-HttpUserAgent",
);
lockPref("privacy.fingerprintingProtection.pbmode", true);
lockPref("privacy.resistFingerprinting", false);
lockPref("privacy.resistFingerprinting.block_mozAddonManage", true);
lockPref("privacy.resistFingerprinting.letterboxing", false);
clearPref("privacy.resistFingerprinting.pbmode");
// New sidebar
lockPref("sidebar.revamp", true);
lockPref("sidebar.verticalTabs", true);
lockPref("sidebar.visibility", "always-show");
lockPref("sidebar.main.tools", "");
//
'';
};
policies = { policies = {
EnableTrackingProtection = { EnableTrackingProtection = {
@ -81,7 +114,7 @@
# Start Page # Start Page
Homepage = { Homepage = {
StartPage = "previous-session"; StartPage = "previous-session";
Loked = true; Locked = true;
}; };
# Home Page # Home Page
@ -186,6 +219,10 @@
Value = "firefox-compact-dark@mozilla.org"; Value = "firefox-compact-dark@mozilla.org";
Status = "locked"; Status = "locked";
}; };
"layout.css.prefers-color-scheme.content-override" = {
Value = 0;
Status = "locked";
};
# homepage # homepage
"browser.startup.homepage" = { "browser.startup.homepage" = {
Value = " about:home"; Value = " about:home";
@ -243,6 +280,13 @@
"browser.newtabpage.activity-stream.showSponsored" = lock-false; "browser.newtabpage.activity-stream.showSponsored" = lock-false;
"browser.newtabpage.activity-stream.system.showSponsored" = lock-false; "browser.newtabpage.activity-stream.system.showSponsored" = lock-false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = lock-false; "browser.newtabpage.activity-stream.showSponsoredTopSites" = lock-false;
"browser.newtabpage.activity-stream.showWeather" = lock-false;
"browser.newtabpage.activity-stream.newtabWallpapers.enabled" = lock-false;
"browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled" = lock-false;
"browser.newtabpage.activity-stream.default.sites" = {
Value = "";
Status = "locked";
};
# safebrowsing # safebrowsing
"browser.safebrowsing.malware.enabled" = lock-true; "browser.safebrowsing.malware.enabled" = lock-true;
"browser.safebrowsing.phishing.enabled" = lock-true; "browser.safebrowsing.phishing.enabled" = lock-true;
@ -256,16 +300,6 @@
}; };
"browser.tabs.warnOnClose" = lock-true; "browser.tabs.warnOnClose" = lock-true;
"browser.tabs.firefox-view" = lock-false; "browser.tabs.firefox-view" = lock-false;
"sidebar.revamp" = {
Comment = "Preference not allowed for stability reasons.";
Status = "default";
Type = "boolean";
Value = true;
};
"sidebar.main.tools" = {
Value = "";
Status = "locked";
};
"browser.tabs.closeTabByDblclick" = lock-true; "browser.tabs.closeTabByDblclick" = lock-true;
"ui.key.menuAccessKeyFocuses" = lock-false; "ui.key.menuAccessKeyFocuses" = lock-false;
# general settings # general settings

View file

@ -324,7 +324,7 @@
(define-public %base-freya-operating-system (define-public %base-freya-operating-system
(operating-system (operating-system
(kernel linux-6.11) (kernel linux)
(firmware %base-freya-firmware) (firmware %base-freya-firmware)
(locale "en_US.UTF-8") (locale "en_US.UTF-8")
(locale-definitions %base-freya-locale) (locale-definitions %base-freya-locale)