Refactor home modules and update configs
- Remove unused `pkgs` import from hardware and adjust user stateVersion to 25.11 with updated wheel comment. - Split Bash aliases and functions into separate modules and rename `bash.nix` to `bash/default.nix` with imports. - Delete old Bash alias/function files and consolidate them under the new structure. - Simplify `bat.nix` by removing commented style lines. - Increase Cava `frame_rate` from 60 to 144 and clean up legacy color settings. - Refactor Chromium configuration: separate extensions into `extensions.nix` and use a minimal default module. - Replace large Kitty config with minimal enable/module and import `extra-config.nix` and `settings.nix`. - Overhaul Librewolf setup: extract profiles, extensions, search, and settings into dedicated files. - Update home `default.nix` imports to reflect new module paths and remove obsolete references. - Modularize SwayNC by moving settings and style to separate files. - Add explicit Vesktop package definition. - Remove old VSCode module; introduce VSCodium with profile-based extensions, keybindings, and user settings. - Reorganize XDG portal and desktop entries into modular files. - Rebuild Zed configuration: split user settings, language models, languages, LSP, extensions, and extra packages into distinct files.
This commit is contained in:
26
modules/home/librewolf/default.nix
Normal file
26
modules/home/librewolf/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{pkgs, ...}: {
|
||||
programs = {
|
||||
librewolf = {
|
||||
enable = true;
|
||||
package = pkgs.librewolf;
|
||||
# nativeMessagingHosts = [pkgs.firefoxpwa];
|
||||
languagePacks = [
|
||||
"pl"
|
||||
"en-US"
|
||||
];
|
||||
settings = {
|
||||
# LibreWolf settings
|
||||
"network.http.referer.XOriginPolicy" = 2;
|
||||
"privacy.resistFingerprinting.letterboxing" = true;
|
||||
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
|
||||
};
|
||||
policies = {
|
||||
# Policies (about:policies#documentation)
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
./profiles
|
||||
];
|
||||
}
|
||||
13
modules/home/librewolf/profiles/default.nix
Normal file
13
modules/home/librewolf/profiles/default.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{host, ...}: {
|
||||
programs.librewolf.profiles."${host}" = {
|
||||
id = 0;
|
||||
isDefault = true;
|
||||
name = "${host}";
|
||||
};
|
||||
|
||||
imports = [
|
||||
./extensions.nix
|
||||
./search.nix
|
||||
./settings.nix
|
||||
];
|
||||
}
|
||||
22
modules/home/librewolf/profiles/extensions.nix
Normal file
22
modules/home/librewolf/profiles/extensions.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
inputs,
|
||||
system,
|
||||
host,
|
||||
...
|
||||
}: {
|
||||
# about:debugging#/runtime/this-firefox Przydatne do wyszukiwania ID rozszerzenia
|
||||
# programs.librewolf.profiles."${host}".extensions.force = true;
|
||||
programs.librewolf.profiles."${host}".extensions.packages = with inputs.firefox-addons.packages.${system}; [
|
||||
bitwarden
|
||||
floccus
|
||||
ublock-origin
|
||||
sponsorblock
|
||||
darkreader
|
||||
# flagfox
|
||||
hoppscotch
|
||||
return-youtube-dislikes
|
||||
sponsorblock
|
||||
# pwas-for-firefox
|
||||
mtab
|
||||
];
|
||||
}
|
||||
216
modules/home/librewolf/profiles/search.nix
Normal file
216
modules/home/librewolf/profiles/search.nix
Normal file
@@ -0,0 +1,216 @@
|
||||
{
|
||||
pkgs,
|
||||
host,
|
||||
...
|
||||
}: {
|
||||
programs.librewolf.profiles."${host}".search = {
|
||||
default = "garand's-search";
|
||||
privateDefault = "garand's-search";
|
||||
force = true;
|
||||
engines = {
|
||||
"garand's-search" = {
|
||||
definedAliases = ["@g"];
|
||||
urls = [{template = "https://search.garandplg.com/search?q={searchTerms}";}];
|
||||
# suggestUrl = "https://search.garandplg.com/autocompleter?q={searchTerms}"; Not implemented in home-manager ☹️
|
||||
};
|
||||
"youtube" = {
|
||||
definedAliases = ["@yt"];
|
||||
urls = [
|
||||
{
|
||||
template = "https://www.youtube.com/results";
|
||||
params = [
|
||||
{
|
||||
name = "search_query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"wikipedia-pl" = {
|
||||
definedAliases = ["@w"];
|
||||
urls = [
|
||||
{
|
||||
template = "https://pl.wikipedia.org/w/index.php";
|
||||
params = [
|
||||
{
|
||||
name = "search";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"stackoverflow" = {
|
||||
definedAliases = ["@so"];
|
||||
urls = [
|
||||
{
|
||||
template = "https://stackoverflow.com/search";
|
||||
params = [
|
||||
{
|
||||
name = "q";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"nix-packages" = {
|
||||
definedAliases = ["@np"];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages?channel=unstable";
|
||||
params = [
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"nix-options" = {
|
||||
definedAliases = ["@no"];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/options";
|
||||
params = [
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"nix-wiki" = {
|
||||
definedAliases = ["@nw"];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://wiki.nixos.org/w/index.php";
|
||||
params = [
|
||||
{
|
||||
name = "search";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"home-manager-option" = {
|
||||
definedAliases = ["@hmo"];
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master";
|
||||
}
|
||||
];
|
||||
};
|
||||
"eneba" = {
|
||||
definedAliases = ["@en"];
|
||||
icon = "https://static.eneba.games/branding/v2/logoFull.svg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://www.eneba.com/pl/store/all";
|
||||
params = [
|
||||
{
|
||||
name = "text";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"kinguin" = {
|
||||
definedAliases = ["@ki"];
|
||||
icon = "https://static.kinguin.net/media/images/other/kinguin-mobile-logo.svg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://www.kinguin.net/listing?active=1&hideUnavailable=0&type=kinguin";
|
||||
params = [
|
||||
{
|
||||
name = "phrase";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"instant-gaming" = {
|
||||
definedAliases = ["@ig"];
|
||||
icon = "https://asset.brandfetch.io/idCbLj4uOg/idGS61T0FV.jpeg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://www.instant-gaming.com/pl/search/";
|
||||
params = [
|
||||
{
|
||||
name = "q";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"morele" = {
|
||||
definedAliases = ["@mo"];
|
||||
icon = "https://www.morele.net/static/img/shop/logo/image-logo-morele.svg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://www.morele.net/wyszukiwarka/";
|
||||
params = [
|
||||
{
|
||||
name = "q";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"x-kom" = {
|
||||
definedAliases = ["@xk"];
|
||||
icon = "https://assets.x-kom.pl/public-spa/xkom/75062cb4b48a8510.svg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://www.x-kom.pl/szukaj";
|
||||
params = [
|
||||
{
|
||||
name = "q";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
"komputronik" = {
|
||||
definedAliases = ["@kp"];
|
||||
icon = "https://front.komputronik.pl/front-static/komputronik.Ceqagame-a.svg";
|
||||
urls = [
|
||||
{
|
||||
template = "https://www.komputronik.pl/search/category/1";
|
||||
params = [
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
"google".metaData.hidden = true;
|
||||
"bing".metaData.hidden = true;
|
||||
"perplexity".metaData.hidden = true;
|
||||
"wolnelektury-pl".metaData.hidden = true;
|
||||
"policy-DuckDuckGo Lite".metaData.hidden = true;
|
||||
"policy-MetaGer".metaData.hidden = true;
|
||||
"policy-Mojeek".metaData.hidden = true;
|
||||
"policy-SearXNG - searx.be".metaData.hidden = true;
|
||||
"policy-StartPage".metaData.hidden = true;
|
||||
|
||||
"allegro-pl".metaData.alias = "@al";
|
||||
};
|
||||
};
|
||||
}
|
||||
42
modules/home/librewolf/profiles/settings.nix
Normal file
42
modules/home/librewolf/profiles/settings.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
host,
|
||||
...
|
||||
}: {
|
||||
programs.librewolf.profiles."${host}".settings = lib.mkForce {
|
||||
# Preferences (about:config)
|
||||
"general.useragent.locale" = "pl";
|
||||
"intl.locale.requested" = "pl,en-US";
|
||||
"intl.accept_languages" = "pl,en-US";
|
||||
|
||||
"extensions.autoDisableScopes" = 0;
|
||||
|
||||
"font.default.x-western" = "FiraCode Nerd Font";
|
||||
"font.name.monospace.x-western" = "FiraCode Nerd Font Mono";
|
||||
"font.name.sans-serif.x-western" = "FiraCode Nerd Font Propo";
|
||||
"font.name.serif.x-western" = "FiraCode Nerd Font";
|
||||
|
||||
"layout.css.prefers-color-scheme.content-override" = 0;
|
||||
"layout.css.font-visibility" = 1;
|
||||
|
||||
"browser.tabs.insertRelatedAfterCurrent" = true;
|
||||
"browser.sessionstore.resume_from_crash" = true;
|
||||
"browser.sessionstore.resume_session_once" = true;
|
||||
"browser.toolbars.bookmarks.visibility" = "never";
|
||||
|
||||
"browser.search.update" = true;
|
||||
|
||||
"sidebar.main.tools" = "history,bookmarks";
|
||||
"sidebar.revamp" = true;
|
||||
"sidebar.verticalTabs" = true;
|
||||
|
||||
"browser.eme.ui.enabled" = true;
|
||||
"media.eme.enabled" = true;
|
||||
|
||||
"privacy.donottrackheader.enabled" = true;
|
||||
"privacy.clearOnShutdown.history" = true;
|
||||
|
||||
"network.trr.mode" = 3;
|
||||
"network.trr.uri" = "https://dns.mullvad.net/dns-query";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user