mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-05-20 13:22:34 +02:00
Nix fmt
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -14,13 +14,9 @@
|
||||
|
||||
c = config.lib.stylix.colors;
|
||||
|
||||
stripProtocol = url:
|
||||
lib.removePrefix "https://" (lib.removePrefix "http://" url);
|
||||
stripProtocol = url: lib.removePrefix "https://" (lib.removePrefix "http://" url);
|
||||
|
||||
stripDomain = url:
|
||||
builtins.head (
|
||||
lib.splitString "/" (stripProtocol url)
|
||||
);
|
||||
stripDomain = url: builtins.head (lib.splitString "/" (stripProtocol url));
|
||||
|
||||
mkCard = item: let
|
||||
domain = stripDomain item.url;
|
||||
@@ -69,13 +65,15 @@
|
||||
items = result.pending;
|
||||
};
|
||||
in
|
||||
lib.concatMapStrings (chunk:
|
||||
if chunk.isCards
|
||||
then ''
|
||||
<div class="cards">
|
||||
${lib.concatMapStrings mkCard chunk.items}
|
||||
</div>''
|
||||
else mkFolder chunk.folder)
|
||||
lib.concatMapStrings (
|
||||
chunk:
|
||||
if chunk.isCards
|
||||
then ''
|
||||
<div class="cards">
|
||||
${lib.concatMapStrings mkCard chunk.items}
|
||||
</div>''
|
||||
else mkFolder chunk.folder
|
||||
)
|
||||
chunks;
|
||||
|
||||
mkFolder = folder: let
|
||||
@@ -145,9 +143,7 @@
|
||||
)
|
||||
items;
|
||||
|
||||
publicBookmarks =
|
||||
pkgs.writeText "qutebrowser-public-bookmarks"
|
||||
(collectBookmarks "" bookmarkList);
|
||||
publicBookmarks = pkgs.writeText "qutebrowser-public-bookmarks" (collectBookmarks "" bookmarkList);
|
||||
in {
|
||||
config = {
|
||||
xdg.dataFile."qutebrowser/bookmarks.html".text = ''
|
||||
|
||||
@@ -27,7 +27,10 @@
|
||||
genericName = "Web Browser";
|
||||
exec = "qutebrowser --temp-basedir %U";
|
||||
icon = "qutebrowser";
|
||||
categories = ["Network" "WebBrowser"];
|
||||
categories = [
|
||||
"Network"
|
||||
"WebBrowser"
|
||||
];
|
||||
};
|
||||
|
||||
programs.qutebrowser = {
|
||||
|
||||
@@ -7,7 +7,11 @@
|
||||
};
|
||||
new_instance_open_target = "window";
|
||||
"tabs.last_close" = "close";
|
||||
"statusbar.widgets" = ["keypress" "url" "progress"];
|
||||
"statusbar.widgets" = [
|
||||
"keypress"
|
||||
"url"
|
||||
"progress"
|
||||
];
|
||||
|
||||
# Adblock
|
||||
"content.blocking.enabled" = true;
|
||||
@@ -26,7 +30,12 @@
|
||||
"downloads.location.prompt" = false;
|
||||
|
||||
# Editor (Ctrl+e in text fields)
|
||||
"editor.command" = ["ghostty" "-e" "nvim" "{}"];
|
||||
"editor.command" = [
|
||||
"ghostty"
|
||||
"-e"
|
||||
"nvim"
|
||||
"{}"
|
||||
];
|
||||
|
||||
# Tabs
|
||||
# "tabs.show" = "switching";
|
||||
|
||||
@@ -29,8 +29,10 @@
|
||||
"qutebrowser/greasemonkey/return-youtube-dislike.user.js".source = inputs.qs-return-youtube-dislike;
|
||||
"qutebrowser/greasemonkey/sponsorblock-lite.user.js".source = inputs.qs-sponsorblock-lite;
|
||||
"qutebrowser/greasemonkey/dont-track-me-google.user.js".source = inputs.qs-dont-track-me-google;
|
||||
"qutebrowser/greasemonkey/i-dont-care-about-cookies.user.js".source = inputs.qs-i-dont-care-about-cookies;
|
||||
"qutebrowser/greasemonkey/tracking-token-stripper.user.js".source = inputs.qs-tracking-token-stripper;
|
||||
"qutebrowser/greasemonkey/i-dont-care-about-cookies.user.js".source =
|
||||
inputs.qs-i-dont-care-about-cookies;
|
||||
"qutebrowser/greasemonkey/tracking-token-stripper.user.js".source =
|
||||
inputs.qs-tracking-token-stripper;
|
||||
"qutebrowser/greasemonkey/bypass-paywalls-clean.user.js".source = inputs.qs-bypass-paywalls-clean;
|
||||
"qutebrowser/greasemonkey/anti-adblock-fuckoff.user.js".source = inputs.qs-anti-adblock-fuckoff;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user