Compare commits

...

3 commits

Author SHA1 Message Date
Aria Nolan b37df94d27 added firefox policies 2023-11-12 01:06:24 -05:00
Aria Nolan e3ea703340 added search engines and other various settings 2023-11-10 17:23:47 -05:00
Aria Nolan 3433ddb932 set up NUR 2023-11-10 13:03:26 -05:00
2 changed files with 98 additions and 4 deletions

View file

@ -28,7 +28,7 @@
# pass in the urls defined above # pass in the urls defined above
# the @ syntax stores the arguments in the inputs variable # the @ syntax stores the arguments in the inputs variable
outputs = inputs @ { outputs = {
self, self,
nixpkgs, nixpkgs,
home-manager, home-manager,
@ -36,9 +36,12 @@
nixos-hardware, nixos-hardware,
nur, nur,
... ...
}: let } @ inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system}; pkgs = inputs.nixpkgs.legacyPackages.${system};
overlays = [
nur.overlay
];
in { in {
formatter.${system} = pkgs.alejandra; formatter.${system} = pkgs.alejandra;
@ -78,6 +81,7 @@
inherit pkgs; inherit pkgs;
extraSpecialArgs = {inherit inputs;}; # Pass flake inputs to our config extraSpecialArgs = {inherit inputs;}; # Pass flake inputs to our config
modules = [ modules = [
{ nixpkgs.overlays = overlays; }
./users/tacocat/home.nix ./users/tacocat/home.nix
]; ];
}; };

View file

@ -1,11 +1,101 @@
{inputs, ...}: { {pkgs, ...}: {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.firefox.override {
extraPolicies = {
DisableAppUpdate = true;
DisableFirefoxAccounts = false;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableTelemetry = true;
DontCheckDefaultBrowser = true;
EnableTrackingProtection = true;
NoDefaultBookmarks = true;
OfferToSaveLogins = false;
OfferToSaveLoginsDefault = false;
PasswordManagerEnabled = false;
FirefoxHome = {
Search = true;
Pocket = false;
Snippets = false;
TopSites = false;
Highlights = false;
};
UserMessaging = {
ExtensionRecommendations = false;
SkipOnboarding = true;
};
Cookies = {
ExpireAtSessionEnd = true;
RejectTracker = true;
};
};
};
profiles = { profiles = {
"aria" = { "aria" = {
extensions = with inputs.nur.repos.rycee.firefox-addons; [ extensions = with pkgs.nur.repos.rycee.firefox-addons; [
ublock-origin ublock-origin
bitwarden
canvasblocker
aria2-integration
sponsorblock
xbrowsersync
]; ];
settings = {
"browser.aboutConfig.showWarning" = false;
"browser.startup.page" = 1;
"geo.provider.network.url" = "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%";
"intl.accept_languages" = "en-US, en";
"app.update.auto" = false;
"browser.download.useDownloadDir" = false;
"browser.download.manager.addToRecentDocs" = false;
};
search = {
default = "Celtic Lite";
engines = {
"Nix Packages" = {
urls = [
{
template = "https://search.nixos.org/packages";
params = [
{
name = "type";
value = "packages";
}
{
name = "channel";
value = "unstable";
}
{
name = "query";
value = "{searchTerms}";
}
];
}
];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@np"];
};
"Celtic Lite" = {
urls = [
{
template = "https://search.celticlite.com/search";
params = [
{
name = "q";
value = "{searchTerms}";
}
];
}
];
definedAliases = ["@cl"];
};
"Google".metaData.hidden = true;
"Amazon.com".metaData.hidden = true;
"Bing".metaData.hidden = true;
"eBay".metaData.hidden = true;
};
};
}; };
}; };
}; };