Compare commits
8 commits
498e2c3436
...
53382a9140
Author | SHA1 | Date | |
---|---|---|---|
|
53382a9140 | ||
|
b37df94d27 | ||
|
e3ea703340 | ||
|
3433ddb932 | ||
|
fc8b92f2e6 | ||
|
6ac1d036e5 | ||
|
47746c387a | ||
|
2a9236e833 |
18
flake.lock
18
flake.lock
|
@ -140,12 +140,28 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nur": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1699163564,
|
||||||
|
"narHash": "sha256-Jxb/JkUJhXKalVRlhnh2B+lkGASxQ5vrymcHtU71qyI=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nur",
|
||||||
|
"rev": "88abb29a4bfbd84a2f20380c2595db77d36c3635",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nur",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"helix": "helix",
|
"helix": "helix",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nur": "nur"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-overlay": {
|
"rust-overlay": {
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -23,20 +23,25 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nixos-hardware.url = "github:NixOs/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOs/nixos-hardware/master";
|
||||||
|
nur.url = "github:nix-community/nur";
|
||||||
};
|
};
|
||||||
|
|
||||||
# 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,
|
||||||
helix,
|
helix,
|
||||||
nixos-hardware,
|
nixos-hardware,
|
||||||
|
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;
|
||||||
|
|
||||||
|
@ -76,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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./taskwarrior.nix
|
./taskwarrior.nix
|
||||||
|
./firefox.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
|
@ -14,5 +15,4 @@
|
||||||
programs.bat = {
|
programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
102
users/tacocat/programs/firefox.nix
Normal file
102
users/tacocat/programs/firefox.nix
Normal file
|
@ -0,0 +1,102 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
programs.firefox = {
|
||||||
|
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 = {
|
||||||
|
"aria" = {
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue