GOING TO BED

This commit is contained in:
albert 2023-07-02 00:25:54 +09:00
parent 2250f28172
commit f7ca6ff687
3 changed files with 50 additions and 34 deletions

View file

@ -1,45 +1,39 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.firefox.override {
cfg = {
CaptivePortal = false;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DisableFirefoxAccounts = false;
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
OfferToSaveLoginsDefault = false;
PasswordManagerEnabled = false;
FirefoxHome = {
Search = true;
Pocket = false;
Snippets = false;
TopSites = false;
Highlights = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
};
};
profiles.default = { profiles.default = {
isDefault = true; isDefault = true;
name = "default"; name = "default";
settings = { settings = {
"extension.pocket.enabled" = "false";
"toolkit.telemetry.pioneer-new-studies-availble" = "false";
"datareporting.healthreport.uploadEnabled" = "false";
"datareporting.healthreport.infoURL" = "null";
"toolkit.telemetry.server" = "null";
"browser.newtabpage.activity-stream.feeds.telemetry" = "false";
"browser.newtabpage.activity-stream.telemetry" = "false";
"browser.ping-centre.telemetry" = "false";
"toolkit.telemetry.enabled" = "false";
"toolkit.telemetry.firstShutdownPing.enabled" = "false";
"toolkit.telemetry.hybridContent.enabled" = "false";
"toolkit.telemetry.newProfilePing.enabled" = "false";
"toolkit.telemetry.shutdownPingSender.enabled" = "false";
"toolkit.telemetry.updatePing.enabled" = "false";
"toolkit.telemetry.reportingpolicy.firstRun" = "false";
"toolkit.telemetry.unified" = "false";
"toolkit.telemetry.archive.enabled" = "false";
"devtools.onboarding.telemetry.logged" = "false";
"toolkit.telemetry.bhrPing.enabled" = "false";
"datareporting.policy.dataSubmissionEnabled" = "false";
"datareporting.sessions.current.clean" = "true";
"browser.startup.homepage" = "https://searx.sysctl.io"; "browser.startup.homepage" = "https://searx.sysctl.io";
"browser.search.region" = "US"; "browser.search.region" = "US";
"browser.search.isUS" = false; "browser.search.isUS" = false;
"distribution.searchplugins.defaultLocale" = "en-US"; "distribution.searchplugins.defaultLocale" = "en-US";
"general.useragent.locale" = "en-US"; "general.useragent.locale" = "en-US";
"browser.bookmarks.showMobileBookmarks" = false; "browser.bookmarks.showMobileBookmarks" = "false";
"browser.newtabpage.pinned" = [{ "browser.newtabpage.enabled" = "false";
title = "Blank"; "services.sync.prefs.sync.browser.newtabpage.enabled" = "false";
url = "about:blank";
}];
}; };
search.default = "DuckDuckGo"; search.default = "DuckDuckGo";
search.force = true; search.force = true;

View file

@ -122,6 +122,21 @@
"type": "github" "type": "github"
} }
}, },
"moz_overlay": {
"locked": {
"lastModified": 1687771476,
"narHash": "sha256-TSpqz6qYVRoqkEdOCawEQ4/cWt/4pracmvw17HK1tgE=",
"owner": "mozilla",
"repo": "nixpkgs-mozilla",
"rev": "3a44b8783514e7d6db4b63df96071b6c2b014b07",
"type": "github"
},
"original": {
"owner": "mozilla",
"repo": "nixpkgs-mozilla",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1688109178, "lastModified": 1688109178,
@ -188,6 +203,7 @@
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"moz_overlay": "moz_overlay",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
}, },

View file

@ -16,11 +16,13 @@
# Secureboot Configuration # Secureboot Configuration
lanzaboote.url = "github:nix-community/lanzaboote"; lanzaboote.url = "github:nix-community/lanzaboote";
lanzaboote.inputs.nixpkgs.follows = "nixpkgs"; lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
# Firefox Overlay
moz_overlay.url = "github:mozilla/nixpkgs-mozilla";
}; };
outputs = { nixpkgs, home-manager, lanzaboote, ... }@inputs: outputs = { nixpkgs, home-manager, lanzaboote, moz_overlay, ... }@inputs:
let let
# Variables - Remember to set these # Variables - Remember to set these
hostname = "nixos-laptop"; hostname = "nixos-laptop";
system = "x86_64-linux"; system = "x86_64-linux";
@ -56,6 +58,10 @@
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.albert = import ./users/albert/home.nix; home-manager.users.albert = import ./users/albert/home.nix;
home-manager.users.root = import ./users/root/home.nix; home-manager.users.root = import ./users/root/home.nix;
# nixpkgs overlays
nixpkgs.overlays = [
moz_overlay.overlay
];
} }
]; # modules ]; # modules
}; # lib.nixosSystem - nixos-laptop }; # lib.nixosSystem - nixos-laptop