refactor: limit use of with lib

This commit is contained in:
matt1432 2024-01-22 11:09:37 -05:00
parent 7fd12f5b04
commit 20dac8791e
16 changed files with 74 additions and 50 deletions
home

View file

@ -3,6 +3,7 @@
pkgs,
...
}: let
inherit (builtins) readFile;
firefox-addons = pkgs.recurseIntoAttrs (pkgs.callPackage ./addons {});
sound-volume = firefox-addons."600-sound-volume";
@ -22,10 +23,10 @@ in {
id = 0;
userChrome = ''
${builtins.readFile "${firefox-gx}/chrome/userChrome.css"}
${builtins.readFile ./custom.css}
${readFile "${firefox-gx}/chrome/userChrome.css"}
${readFile ./custom.css}
'';
extraConfig = builtins.readFile "${firefox-gx}/user.js";
extraConfig = readFile "${firefox-gx}/user.js";
settings = {
# Theme
@ -123,7 +124,7 @@ in {
"Noogle" = {
urls = [
{
template = "https://noogle.dev/?term={searchTerms}";
template = "https://noogle.dev/q?term={searchTerms}";
}
];
iconUpdateURL = "https://noogle.dev/favicon.ico";

View file

@ -1,13 +1,7 @@
{
nixpkgs,
pkgs,
...
}: {
{...}: {
programs = {
wofi = {
enable = true;
# FIXME: remove when overlay gets fixed
package = pkgs.callPackage "${nixpkgs}/pkgs/applications/misc/wofi/default.nix" {};
settings = {
prompt = "";
allow_images = true;