forked from poz/niksos
feat: add schizofox and add some firefox hm fixes
This commit is contained in:
parent
01c8a12eea
commit
3b241d1223
6 changed files with 160 additions and 26 deletions
102
flake.lock
102
flake.lock
|
@ -721,6 +721,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-compat_7": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696426674,
|
||||||
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "edolstra",
|
||||||
|
"repo": "flake-compat",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": [
|
"nixpkgs-lib": [
|
||||||
|
@ -764,6 +780,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-parts_11": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": [
|
||||||
|
"schizofox",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696343447,
|
||||||
|
"narHash": "sha256-B2xAZKLkkeRFG5XcHHSXXcP7To9Xzr59KXeZiRf4vdQ=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-parts_2": {
|
"flake-parts_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib_2"
|
"nixpkgs-lib": "nixpkgs-lib_2"
|
||||||
|
@ -1291,6 +1328,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"home-manager_3": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"schizofox",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696446489,
|
||||||
|
"narHash": "sha256-xSjMKdNR+q/3hdSPyg/LUMsZT/WIoUi8dcm5zT4SMUQ=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "68f7d8c0fb0bfc67d1916dd7f06288424360d43a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hop-nvim": {
|
"hop-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2381,6 +2439,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nmd_2": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1687627428,
|
||||||
|
"narHash": "sha256-7zGfXuNS5RHqhpEdz2fwrtqvF86JRo5U1hrxZSYgcm8=",
|
||||||
|
"owner": "~rycee",
|
||||||
|
"repo": "nmd",
|
||||||
|
"rev": "824a380546b5d0d0eb701ff8cd5dbafb360750ff",
|
||||||
|
"type": "sourcehut"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "~rycee",
|
||||||
|
"repo": "nmd",
|
||||||
|
"type": "sourcehut"
|
||||||
|
}
|
||||||
|
},
|
||||||
"noice-nvim": {
|
"noice-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -2932,6 +3006,7 @@
|
||||||
"nixpkgs": "nixpkgs_12",
|
"nixpkgs": "nixpkgs_12",
|
||||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
|
"schizofox": "schizofox",
|
||||||
"shadower": "shadower",
|
"shadower": "shadower",
|
||||||
"split-monitor-workspaces": "split-monitor-workspaces"
|
"split-monitor-workspaces": "split-monitor-workspaces"
|
||||||
}
|
}
|
||||||
|
@ -3065,6 +3140,33 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"schizofox": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_7",
|
||||||
|
"flake-parts": "flake-parts_11",
|
||||||
|
"home-manager": "home-manager_3",
|
||||||
|
"nixpak": [
|
||||||
|
"nixpak"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nmd": "nmd_2"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696625102,
|
||||||
|
"narHash": "sha256-GNk+FZf457zBVONbDh7Rh19TnxqRO+eNv2PtLamRAZ8=",
|
||||||
|
"owner": "schizofox",
|
||||||
|
"repo": "schizofox",
|
||||||
|
"rev": "4a953104e73b69cafe464bc413ce05c48836105e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "schizofox",
|
||||||
|
"repo": "schizofox",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"scrollbar-nvim": {
|
"scrollbar-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
|
@ -82,5 +82,13 @@
|
||||||
url = "github:viperML/nh";
|
url = "github:viperML/nh";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
schizofox = {
|
||||||
|
url = "github:schizofox/schizofox";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
nixpak.follows = "nixpak";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -335,49 +335,51 @@
|
||||||
btop.enable = true;
|
btop.enable = true;
|
||||||
firefox = {
|
firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
defaultSearchEngine = "NotASearx";
|
||||||
searchEngines = {
|
searchEngines = {
|
||||||
"NotASearx" = {
|
"NotASearx" = {
|
||||||
url = "https://search.notashelf.dev/search?q={searchTerms}";
|
url = "https://search.notashelf.dev/search?q={searchTerms}";
|
||||||
favicon = "";
|
faviconUrl = "https://search.notashelf.dev/favicon.ico";
|
||||||
aliases = [ "@sx" ];
|
aliases = [ "!sx" ];
|
||||||
};
|
};
|
||||||
"NixOS Packages" = {
|
"NixOS Packages" = {
|
||||||
url = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
|
url = "https://search.nixos.org/packages?channel=unstable&query={searchTerms}";
|
||||||
favicon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
aliases = [ "@np" ];
|
aliases = [ "!np" ];
|
||||||
};
|
};
|
||||||
"NixOS Options" = {
|
"NixOS Options" = {
|
||||||
url = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";
|
url = "https://search.nixos.org/options?channel=unstable&query={searchTerms}";
|
||||||
favicon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
aliases = [ "@no" ];
|
aliases = [ "!no" ];
|
||||||
};
|
};
|
||||||
"NixOS Wiki" = {
|
"NixOS Wiki" = {
|
||||||
url = "https://nixos.wiki/index.php?search={searchTerms}";
|
url = "https://nixos.wiki/index.php?search={searchTerms}";
|
||||||
favicon = "";
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
aliases = [ "@nw" ];
|
aliases = [ "!nw" ];
|
||||||
};
|
};
|
||||||
"Home Manger Option Search" = {
|
"Home Manger Option Search" = {
|
||||||
url = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
|
url = "https://mipmip.github.io/home-manager-option-search?query={searchTerms}";
|
||||||
favicon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
faviconPath = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
aliases = [ "@hm" ];
|
aliases = [ "!hm" ];
|
||||||
};
|
};
|
||||||
"Arch Wiki" = {
|
"Arch Wiki" = {
|
||||||
url = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
url = "https://wiki.archlinux.org/index.php?search={searchTerms}";
|
||||||
favicon = "";
|
faviconUrl = "https://archlinux.org/favicon.ico";
|
||||||
aliases = [ "@aw" ];
|
aliases = [ "!aw" ];
|
||||||
};
|
};
|
||||||
"Gentoo Wiki" = {
|
"Gentoo Wiki" = {
|
||||||
url = "https://wiki.gentoo.org/index.php?search={searchTerms}";
|
url = "https://wiki.gentoo.org/index.php?search={searchTerms}";
|
||||||
favicon = "";
|
faviconUrl = "https://www.gentoo.org/favicon.ico";
|
||||||
aliases = [ "@gw" ];
|
aliases = [ "!gw" ];
|
||||||
};
|
};
|
||||||
"Debian Wiki" = {
|
"Debian Wiki" = {
|
||||||
url = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
|
url = "https://wiki.debian.org/FrontPage?action=fullsearch&value={searchTerms}";
|
||||||
favicon = "";
|
faviconUrl = "https://www.debian.org/favicon.ico";
|
||||||
aliases = [ "@dw" ];
|
aliases = [ "!dw" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
schizofox.enable = false;
|
||||||
foot.enable = true;
|
foot.enable = true;
|
||||||
gtklock.enable = false;
|
gtklock.enable = false;
|
||||||
mpv.enable = true;
|
mpv.enable = true;
|
||||||
|
|
|
@ -12,6 +12,7 @@ _: {
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
./qt.nix
|
./qt.nix
|
||||||
#./rofi.nix
|
#./rofi.nix
|
||||||
|
./schizofox.nix
|
||||||
./swaylock.nix
|
./swaylock.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./zathura.nix
|
./zathura.nix
|
||||||
|
|
|
@ -55,6 +55,10 @@
|
||||||
in {
|
in {
|
||||||
options.myOptions.programs.firefox = {
|
options.myOptions.programs.firefox = {
|
||||||
enable = mkEnableOption "enable firefox";
|
enable = mkEnableOption "enable firefox";
|
||||||
|
defaultSearchEngine = mkOption {
|
||||||
|
description = "name of the default search engine";
|
||||||
|
type = types.str;
|
||||||
|
};
|
||||||
searchEngines = mkOption {
|
searchEngines = mkOption {
|
||||||
default = [{
|
default = [{
|
||||||
url = "https://startpage.com";
|
url = "https://startpage.com";
|
||||||
|
@ -68,9 +72,14 @@ in {
|
||||||
description = "url for the search engine, params placeholder and all";
|
description = "url for the search engine, params placeholder and all";
|
||||||
type = str;
|
type = str;
|
||||||
};
|
};
|
||||||
favicon = mkOption {
|
faviconPath = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
description = "url or path to favicon";
|
description = "path to favicon";
|
||||||
|
type = str;
|
||||||
|
};
|
||||||
|
faviconUrl = mkOption {
|
||||||
|
default = "";
|
||||||
|
description = "url to favicon";
|
||||||
type = str;
|
type = str;
|
||||||
};
|
};
|
||||||
aliases = mkOption {
|
aliases = mkOption {
|
||||||
|
@ -123,14 +132,14 @@ in {
|
||||||
id = 0;
|
id = 0;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
search = {
|
search = {
|
||||||
default = "${searxng-name}";
|
default = cfg.defaultSearchEngine;
|
||||||
force = true;
|
force = true;
|
||||||
engines = (mapAttrs (name: value: {
|
engines = (mapAttrs (name: value: {
|
||||||
${name} = {
|
${name} = {
|
||||||
urls = [{ template = value.url; }];
|
urls = [{ template = value.url; }];
|
||||||
icon = if isPath value.favicon then value.favicon else "";
|
icon = mkIf (value.faviconPath != "") value.faviconPath;
|
||||||
iconUpdateURL = if isPath value.favicon then "" else value.favicon;
|
iconUpdateURL = mkIf (value.faviconUrl != "") value.faviconUrl;
|
||||||
updateInterval = 24 * 60 * 60 * 1000;
|
updateInterval = mkIf (value.faviconUrl != "") (24 * 60 * 60 * 1000);
|
||||||
definedAliases = value.aliases;
|
definedAliases = value.aliases;
|
||||||
};
|
};
|
||||||
}) cfg.searchEngines)
|
}) cfg.searchEngines)
|
||||||
|
@ -141,6 +150,7 @@ in {
|
||||||
"DuckDuckGo".metaData.hidden = true;
|
"DuckDuckGo".metaData.hidden = true;
|
||||||
"Amazon.com".metaData.hidden = true;
|
"Amazon.com".metaData.hidden = true;
|
||||||
};
|
};
|
||||||
|
order = mapAttrsToList (name: _value: name) cfg.searchEngines;
|
||||||
};
|
};
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
ublock-origin
|
ublock-origin
|
||||||
|
|
|
@ -12,9 +12,9 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
home-manager.users.${config'.username} = {
|
||||||
imports = [ inputs.schizofox.homeManagerModule ];
|
imports = [ inputs.schizofox.homeManagerModule ];
|
||||||
|
|
||||||
home-manager.users.${config'.username} = {
|
|
||||||
programs.schizofox = {
|
programs.schizofox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = {
|
theme = {
|
||||||
|
@ -22,7 +22,7 @@ in {
|
||||||
background = "1e1e2e";
|
background = "1e1e2e";
|
||||||
foreground = "cdd6f4";
|
foreground = "cdd6f4";
|
||||||
font = "Lexend";
|
font = "Lexend";
|
||||||
simplefox.enable = true;
|
simplefox.enable = false;
|
||||||
darkreader.enable = true;
|
darkreader.enable = true;
|
||||||
extraCss = ''
|
extraCss = ''
|
||||||
body {
|
body {
|
||||||
|
@ -34,7 +34,7 @@ in {
|
||||||
defaultSearchEngine = "Searx";
|
defaultSearchEngine = "Searx";
|
||||||
removeEngines = ["Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia"];
|
removeEngines = ["Google" "Bing" "Amazon.com" "eBay" "Twitter" "Wikipedia"];
|
||||||
searxUrl = "https://search.notashelf.dev";
|
searxUrl = "https://search.notashelf.dev";
|
||||||
searxQuery = "https://search.notashelf.dev/search?q={searchTerms}&categories=general";
|
searxQuery = "https://search.notashelf.dev/search?q={searchTerms}";
|
||||||
addEngines = [
|
addEngines = [
|
||||||
{
|
{
|
||||||
Name = "NixOS Packages";
|
Name = "NixOS Packages";
|
||||||
|
@ -87,6 +87,17 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security = {
|
||||||
|
sanitizeOnShutdown = true;
|
||||||
|
sandbox = true;
|
||||||
|
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0";
|
||||||
|
};
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
drmFix = false;
|
||||||
|
disableWebgl = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue