mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
Compare commits
No commits in common. "29004da42afba064495d3ebbc3c54e83865cb1ce" and "2dd8b24a3390d20fa24fe60aecffa0ee71a08453" have entirely different histories.
29004da42a
...
2dd8b24a33
8 changed files with 130 additions and 38 deletions
|
|
@ -24,8 +24,6 @@ local servers = {
|
||||||
["nil"] = { formatting = { command = { "nixfmt" } } },
|
["nil"] = { formatting = { command = { "nixfmt" } } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
zls = {},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vim.diagnostic.config {
|
vim.diagnostic.config {
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,6 @@
|
||||||
"https://haskell-language-server.cachix.org"
|
"https://haskell-language-server.cachix.org"
|
||||||
"https://helix.cachix.org"
|
"https://helix.cachix.org"
|
||||||
"https://cache.iog.io"
|
"https://cache.iog.io"
|
||||||
"https://ghostty.cachix.org"
|
|
||||||
];
|
];
|
||||||
extra-trusted-public-keys = [
|
extra-trusted-public-keys = [
|
||||||
"ghc-nix.cachix.org-1:ziC/I4BPqeA4VbtOFpFpu6D1t6ymFvRWke/lc2+qjcg="
|
"ghc-nix.cachix.org-1:ziC/I4BPqeA4VbtOFpFpu6D1t6ymFvRWke/lc2+qjcg="
|
||||||
|
|
@ -83,7 +82,6 @@
|
||||||
"haskell-language-server.cachix.org-1:juFfHrwkOxqIOZShtC4YC1uT1bBcq2RSvC7OMKx0Nz8="
|
"haskell-language-server.cachix.org-1:juFfHrwkOxqIOZShtC4YC1uT1bBcq2RSvC7OMKx0Nz8="
|
||||||
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
"helix.cachix.org-1:ejp9KQpR1FBI2onstMQ34yogDm4OgU2ru6lIwPvuCVs="
|
||||||
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
||||||
"ghostty.cachix.org-1:QB389yTa6gTyneehvqG58y0WnHjQOqgnA+wBnpWWxns="
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,7 @@
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
|
||||||
# Printing and auto-discovery of Wi-Fi printers
|
# Printing and auto-discovery of Wi-Fi printers
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ let
|
||||||
"kvm"
|
"kvm"
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
{ pkgs, ... }:
|
{pkgs, ...}:
|
||||||
{
|
{
|
||||||
nix.buildMachines = [
|
nix.buildMachines = [
|
||||||
# NOTE: these hosts need to be put in the .ssh/config of root.
|
# NOTE: these hosts need to be put in the .ssh/config of root.
|
||||||
|
|
|
||||||
|
|
@ -53,14 +53,10 @@ in
|
||||||
"browser.tabs.loadInBackground" = true;
|
"browser.tabs.loadInBackground" = true;
|
||||||
"browser.ctrlTab.sortByRecentlyUsed" = false;
|
"browser.ctrlTab.sortByRecentlyUsed" = false;
|
||||||
"layout.css.devPixelsPerPx" = 1.1;
|
"layout.css.devPixelsPerPx" = 1.1;
|
||||||
"browser.startup.page" = 1;
|
|
||||||
"browser.link.open_newwindow" = 2; # open in new tab
|
# open links in new window
|
||||||
"browser.translations.automaticallyPopup" = false;
|
# this works a lot better with xmonad where I have a bunch of windows
|
||||||
"browser.tabs.closeWindowWithLastTab" = true;
|
"browser.link.open_newwindow" = 2;
|
||||||
"general.smoothScroll" = false; # makes me dizzy
|
|
||||||
"accessibility.typeaheadfind" = true; # type to find
|
|
||||||
"layout.css.always_underline_links" = true;
|
|
||||||
"media.videocontrols.picture-in-picture.enable-when-switching-tabs.enabled" = true;
|
|
||||||
|
|
||||||
# Sponsored crap
|
# Sponsored crap
|
||||||
# Yes
|
# Yes
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,7 @@
|
||||||
in
|
in
|
||||||
lib.mkIf patdiffCfg.enable {
|
lib.mkIf patdiffCfg.enable {
|
||||||
settings = {
|
settings = {
|
||||||
git.paging = [
|
git.paging.externalDiffCommand = "${lib.getExe' patdiffCfg.package "patdiff-git-wrapper"}";
|
||||||
{
|
|
||||||
externalDiffCommand = "${lib.getExe' patdiffCfg.package "patdiff-git-wrapper"}";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,53 @@
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.programs.zen-browser;
|
inherit (pkgs) nur;
|
||||||
|
|
||||||
firefoxCfg = config.programs.firefox;
|
cfg = config.programs.zen-browser;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.zen-browser = {
|
programs.zen-browser = {
|
||||||
policies = firefoxCfg.policies;
|
# https://mozilla.github.io/policy-templates
|
||||||
|
# The following have more complex logic, keep them as policies and not profiles
|
||||||
|
policies = {
|
||||||
|
RequestedLocales = [
|
||||||
|
"fr-FR" # for fuck sake stop showing me translated version of French gov sites
|
||||||
|
"zh-TW"
|
||||||
|
"en-US"
|
||||||
|
];
|
||||||
|
|
||||||
|
SearchEngines = {
|
||||||
|
Remove = [
|
||||||
|
"Google"
|
||||||
|
"Bing"
|
||||||
|
"DuckDuckGo"
|
||||||
|
"Qwant"
|
||||||
|
"eBay"
|
||||||
|
"Perplexity"
|
||||||
|
];
|
||||||
|
Default = "DuckDuckGo Lite";
|
||||||
|
Add = [
|
||||||
|
{
|
||||||
|
Name = "DuckDuckGo Lite";
|
||||||
|
URLTemplate = "https://lite.duckduckgo.com/lite/search?q={searchTerms}";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
NoDefaultBookmarks = true;
|
||||||
|
DisplayMenuBar = "never";
|
||||||
|
DisplayBookmarksToolbar = "never";
|
||||||
|
DNSOverHTTPS = {
|
||||||
|
Enabled = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# https://searchfox.org/mozilla-central/source/browser/components/enterprisepolicies/Policies.sys.mjs
|
||||||
|
# Some policies can be rewritten to profiles configuration
|
||||||
|
#
|
||||||
# "locked" semantic from zen (doesn't seem to be doing anything, attempted for zen-twilight 1.18t)
|
# "locked" semantic from zen (doesn't seem to be doing anything, attempted for zen-twilight 1.18t)
|
||||||
# https://github.com/0xc000022070/zen-browser-flake/tree/main#preferences
|
# https://github.com/0xc000022070/zen-browser-flake/tree/main#preferences
|
||||||
#
|
#
|
||||||
|
|
@ -21,21 +57,92 @@ in
|
||||||
# - click the buttons
|
# - click the buttons
|
||||||
# - diff it
|
# - diff it
|
||||||
# diff .zen/default/prefs.js{.bk,}
|
# diff .zen/default/prefs.js{.bk,}
|
||||||
profiles.default = lib.mkMerge [
|
profiles.default = {
|
||||||
firefoxCfg.profiles.default
|
|
||||||
{
|
|
||||||
# Zen specific
|
|
||||||
settings = {
|
settings = {
|
||||||
|
# Zen specific
|
||||||
"zen.theme.content-element-separation" = 0; # Remove "borders" around window
|
"zen.theme.content-element-separation" = 0; # Remove "borders" around window
|
||||||
"zen.tabs.show-newtab-vertical" = false;
|
|
||||||
"zen.view.compact.toolbar-flash-popup" = true;
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
"zen.view.show-newtab-button-top" = false;
|
"browser.tabs.loadInBackground" = true;
|
||||||
"zen.view.use-single-toolbar" = false;
|
"browser.ctrlTab.sortByRecentlyUsed" = false;
|
||||||
"zen.tabs.ctrl-tab.ignore-pending-tabs" = true; # ctrl-tab ignore unloaded tabs
|
"layout.css.devPixelsPerPx" = 1.1;
|
||||||
|
"browser.startup.page" = 1;
|
||||||
|
"browser.translations.automaticallyPopup" = false;
|
||||||
|
"browser.tabs.closeWindowWithLastTab" = true;
|
||||||
|
"general.smoothScroll" = false;
|
||||||
|
|
||||||
|
# open links in new window
|
||||||
|
# this works a lot better with xmonad where I have a bunch of windows
|
||||||
|
"browser.link.open_newwindow" = 2;
|
||||||
|
|
||||||
|
# Sponsored crap
|
||||||
|
# Yes
|
||||||
|
"browser.newtabpage.activity-stream.showSearch" = true;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.topsites" = true;
|
||||||
|
# No
|
||||||
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.section.highlights" = false;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.system.topstories" = false;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
||||||
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||||
|
|
||||||
|
# URL
|
||||||
|
# Yes
|
||||||
|
"browser.urlbar.suggest.quicksuggest.nonsponsored" = true;
|
||||||
|
# No
|
||||||
|
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
|
||||||
|
|
||||||
|
# Pasword manager
|
||||||
|
"signon.rememberSignons" = false;
|
||||||
|
"services.passwordSavingEnabled" = false;
|
||||||
|
"pref.privacy.disable_button.view_passwords" = false;
|
||||||
|
|
||||||
|
# Hardware acceleration
|
||||||
|
"layers.acceleration.disabled" = false;
|
||||||
|
|
||||||
|
# Screenshot
|
||||||
|
"screenshots.browser.component.enabled" = true;
|
||||||
|
|
||||||
|
# Recommendations
|
||||||
|
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons" = false;
|
||||||
|
"browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features" = false;
|
||||||
|
"extensions.htmlaboutaddons.recommendations.enabled" = false; # Addons
|
||||||
|
|
||||||
|
# Onboarding
|
||||||
|
"browser.aboutwelcome.enabled" = false;
|
||||||
|
|
||||||
|
# AI crap
|
||||||
|
"browser.ml.chat.enabled" = false;
|
||||||
|
"browser.ml.chat.page" = false;
|
||||||
|
"browser.ml.chat.shortcuts" = false;
|
||||||
|
"browser.ml.chat.sidebar" = false;
|
||||||
|
|
||||||
|
# Prevent WebRTC leak
|
||||||
|
# https://mullvad.net/en/help/webrtc
|
||||||
|
"media.peerconnection.enabled" = false;
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
extensions.packages =
|
||||||
|
let
|
||||||
|
addons = nur.repos.rycee.firefox-addons;
|
||||||
|
in
|
||||||
|
[
|
||||||
|
addons.ublock-origin
|
||||||
|
addons.privacy-badger
|
||||||
|
addons.user-agent-string-switcher
|
||||||
|
|
||||||
|
/*
|
||||||
|
Here's to you who want to remove news feed eradicator because you find it annoying:
|
||||||
|
It is here to annoy you so it is less likely for you to be on the agency inversion path.
|
||||||
|
DO NOT REMOVE IT. I repeat, DO NOT REMOVE IT.
|
||||||
|
|
||||||
|
If you think it's annoying, go do some jump rope, sing, live.
|
||||||
|
*/
|
||||||
|
addons.news-feed-eradicator # did you read the comment above?
|
||||||
|
addons.multi-account-containers
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
xdg.mimeApps =
|
xdg.mimeApps =
|
||||||
let
|
let
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,6 @@
|
||||||
package = lib.mkDefault pkgs.nix;
|
package = lib.mkDefault pkgs.nix;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
# it is impossible to anser in nix-direnv, so we force it to off.
|
|
||||||
# https://github.com/nix-community/nix-direnv/issues/678
|
|
||||||
accept-flake-config = lib.mkForce false;
|
|
||||||
|
|
||||||
# Try to have at least 10GB of space by default
|
# Try to have at least 10GB of space by default
|
||||||
min-free = lib.mkDefault (5 * 1024 * 1024 * 1024);
|
min-free = lib.mkDefault (5 * 1024 * 1024 * 1024);
|
||||||
max-free = lib.mkDefault (10 * 1024 * 1024 * 1024);
|
max-free = lib.mkDefault (10 * 1024 * 1024 * 1024);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue