Misc things proted from extension, and fixes

Back to the non-descriptive commit names again lol
This commit is contained in:
Geoffrey Frogeye 2023-12-01 22:19:52 +01:00
parent edeef96133
commit cc13cabad5
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 27 additions and 7 deletions

View file

@ -19,6 +19,8 @@ let
in in
{ {
nixpkgs.config.allowUnfree = true;
programs = programs =
let let
commonRc = lib.strings.concatLines ([ commonRc = lib.strings.concatLines ([

View file

@ -57,7 +57,7 @@
{ {
modifier = "Mod1"; # FIXME Mod1 for VM, Mod4 for not VM modifier = "Mod1"; # FIXME Mod1 for VM, Mod4 for not VM
terminal = "alacritty"; terminal = "alacritty";
bars = []; # Using frobar bars = [ ]; # Using frobar
colors = let ignore = "#ff00ff"; in colors = let ignore = "#ff00ff"; in
with config.lib.stylix.colors.withHashtag; lib.mkForce { with config.lib.stylix.colors.withHashtag; lib.mkForce {
focused = { border = base0B; background = base0B; text = base00; indicator = base00; childBorder = base0B; }; focused = { border = base0B; background = base0B; text = base00; indicator = base00; childBorder = base0B; };
@ -348,17 +348,28 @@
# TODO Unbind d and T (?) # TODO Unbind d and T (?)
}; };
}; };
loadAutoconfig = true; # FIXME Salvage stuff from autoconfig.yml loadAutoconfig = true;
searchEngines = rec { searchEngines = rec {
DEFAULT = ecosia; DEFAULT = ecosia;
alpinep = "https://pkgs.alpinelinux.org/packages?name={}&branch=edge";
ampwhat = "http://www.amp-what.com/unicode/search/{}"; ampwhat = "http://www.amp-what.com/unicode/search/{}";
arch = "https://wiki.archlinux.org/?search={}";
archp = "https://www.archlinux.org/packages/?q={}";
aur = "https://aur.archlinux.org/packages/?K={}";
aw = ampwhat; aw = ampwhat;
ddg = duckduckgo; ddg = duckduckgo;
dockerhub = "https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q={}&starCount=0";
duckduckgo = "https://duckduckgo.com/?q={}&ia=web"; duckduckgo = "https://duckduckgo.com/?q={}&ia=web";
ecosia = "https://www.ecosia.org/search?q={}"; ecosia = "https://www.ecosia.org/search?q={}";
gfr = "https://www.google.fr/search?hl=fr&q={}";
g = google;
gh = github;
gi = "http://images.google.com/search?q={}";
giphy = "https://giphy.com/search/{}";
github = "https://github.com/search?q={}"; github = "https://github.com/search?q={}";
google = "https://www.google.fr/search?q={}"; google = "https://www.google.fr/search?q={}";
g = google; invidious = "https://invidious.frogeye.fr/search?q={}";
inv = invidious;
npm = "https://www.npmjs.com/search?q={}"; npm = "https://www.npmjs.com/search?q={}";
q = qwant; q = qwant;
qwant = "https://www.qwant.com/?t=web&q={}"; qwant = "https://www.qwant.com/?t=web&q={}";
@ -372,16 +383,23 @@
show = "never"; show = "never";
tabs_are_windows = true; tabs_are_windows = true;
}; };
url = { url = rec {
open_base_url = true; open_base_url = true;
start_pages = "https://geoffrey.frogeye.fr/blank.html"; start_pages = lib.mkDefault "https://geoffrey.frogeye.fr/blank.html";
default_page = start_pages;
}; };
content = { content = {
# I had this setting below, not sure if it did something special # I had this setting below, not sure if it did something special
# config.set("content.cookies.accept", "no-3rdparty", "chrome://*/*") # config.set("content.cookies.accept", "no-3rdparty", "chrome://*/*")
cookies.accept = "no-3rdparty"; cookies.accept = "no-3rdparty";
prefers_reduced_motion = true; prefers_reduced_motion = true;
headers.accept_language = "fr-FR, fr;q=0.9, en-GB;q=0.8, en-US;q=0.7, en;q=0.6";
tls.certificate_errors = "ask-block-thirdparty";
}; };
editor.command = [ "${pkgs.neovide}/bin/neovide" "--" "-f" "{file}" "-c" "normal {line}G{column0}l" ];
# TODO Doesn't work on Arch. Does it even load the right profile on Nix?
# TODO spellcheck.languages = ["fr-FR" "en-GB" "en-US"];
}; };
}; };
@ -446,6 +464,8 @@
}; };
}; };
rofi = { rofi = {
# TODO This theme template, that was used for Arch, looks much better:
# https://gitlab.com/jordiorlando/base16-rofi/-/blob/master/templates/default.mustache
enable = true; enable = true;
pass.enable = true; pass.enable = true;
extraConfig = { extraConfig = {
@ -631,7 +651,6 @@
zathura zathura
meld meld
python3Packages.magic python3Packages.magic
yubikey-touch-detector
# x11-exclusive # x11-exclusive
numlockx numlockx

View file

@ -20,7 +20,6 @@
android-tools android-tools
# downloading # downloading
megatools
# transmission TODO Collision if both transmissions are active? # transmission TODO Collision if both transmissions are active?
# Multimedia toolbox # Multimedia toolbox