thelio76: split out apps

This commit is contained in:
Alex 2024-07-28 19:48:00 -04:00
parent c66285c3ec
commit 00be6c602d
3 changed files with 87 additions and 78 deletions

55
config/apps/firefox.nix Normal file
View File

@ -0,0 +1,55 @@
{ pkgs, firefox-addons, ... }:
{
enable = true;
profiles.default = {
settings = {
"browser.newtabpage.activity-stream.default.sites" = "https://www.wikipedia.org/";
"browser.newtabpage.activity-stream.discoverystream.saveToPocketCard.enabled" = false;
"browser.newtabpage.activity-stream.discoverystream.sendToPocket.enabled" = false;
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
"browser.newtabpage.activity-stream.feeds.system.topstories" = false;
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts" = false;
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "duckduckgo";
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines" = "duckduckgo";
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
"browser.newtabpage.activity-stream.showSponsored" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.activity-stream.system.showSponsored" = false;
"browser.newtabpage.pinned" = [{
url = "https://duckduckgo.com";
label = "@duckduckgo";
searchTopSite = true;
}];
"browser.topsites.contile.cachedTiles" = [ ];
"browser.topsites.contile.enabled" = false; # man fuck this shit, its the api that gets FF newpage shortcuts like FB, expedia, ...
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
"extensions.autoDisableScopes" = 0;
};
extensions = with firefox-addons; [
darkreader
multi-account-containers
simple-tab-groups
ublock-origin
umatrix
];
search = {
force = true;
default = "DuckDuckGo";
engines = {
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
};
order = [ "DuckDuckGo" "Nix Packages" "Wikipedia" "Google" "Amazon" ];
};
};
}

25
config/apps/vscode.nix Normal file
View File

@ -0,0 +1,25 @@
{ pkgs, ... }:
{
programs.vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
eamodio.gitlens
jnoortheen.nix-ide
scalameta.metals
kamikillerto.vscode-colorize
file-icons.file-icons
];
userSettings = {
"security.workspace.trust.untrustedFiles" = "open";
"workbench.colorTheme" = "Default Dark Modern";
"workbench.iconTheme" = "file-icons";
"files.autoSave" = "afterDelay";
"editor.formatOnSave" = true;
"nix.formatterPath" = "nixpkgs-fmt";
"colorize.languages" = [
"javascript"
"nix"
];
};
};
}

View File

@ -51,6 +51,11 @@
yt-dlp yt-dlp
]; ];
imports = [
../../apps/firefox.nix
../../apps/vscode.nix
];
# WM/DE config # WM/DE config
gtk = { gtk = {
enable = true; enable = true;
@ -350,8 +355,8 @@
enable = true; enable = true;
backend = "glx"; backend = "glx";
activeOpacity = 0.9; activeOpacity = 1;
inactiveOpacity = 0.6; inactiveOpacity = 0.75;
shadow = true; shadow = true;
vSync = true; vSync = true;
@ -382,60 +387,6 @@
"git-override" = "git add . && git commit --amend --no-edit && git push --force-with-lease"; "git-override" = "git add . && git commit --amend --no-edit && git push --force-with-lease";
}; };
}; };
firefox = {
enable = true;
profiles.default = {
settings = {
"browser.newtabpage.activity-stream.default.sites" = "https://www.wikipedia.org/";
"browser.newtabpage.activity-stream.discoverystream.saveToPocketCard.enabled" = false;
"browser.newtabpage.activity-stream.discoverystream.sendToPocket.enabled" = false;
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
"browser.newtabpage.activity-stream.feeds.system.topstories" = false;
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts" = false;
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.havePinned" = "duckduckgo";
"browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts.searchEngines" = "duckduckgo";
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
"browser.newtabpage.activity-stream.showSponsored" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.newtabpage.activity-stream.system.showSponsored" = false;
"browser.newtabpage.pinned" = [{
url = "https://duckduckgo.com";
label = "@duckduckgo";
searchTopSite = true;
}];
"browser.topsites.contile.cachedTiles" = [ ];
"browser.topsites.contile.enabled" = false; # man fuck this shit, its the api that gets FF newpage shortcuts like FB, expedia, ...
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
"extensions.autoDisableScopes" = 0;
};
extensions = with firefox-addons; [
darkreader
multi-account-containers
simple-tab-groups
ublock-origin
umatrix
];
search = {
force = true;
default = "DuckDuckGo";
engines = {
"Nix Packages" = {
urls = [{
template = "https://search.nixos.org/packages";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ];
};
};
order = [ "DuckDuckGo" "Nix Packages" "Wikipedia" "Google" "Amazon" ];
};
};
};
git = { git = {
enable = true; enable = true;
userEmail = "alexmat2on@protonmail.com"; userEmail = "alexmat2on@protonmail.com";
@ -472,28 +423,6 @@
}; };
}; };
}; };
vscode = {
enable = true;
extensions = with pkgs.vscode-extensions; [
eamodio.gitlens
jnoortheen.nix-ide
scalameta.metals
kamikillerto.vscode-colorize
file-icons.file-icons
];
userSettings = {
"security.workspace.trust.untrustedFiles" = "open";
"workbench.colorTheme" = "Default Dark Modern";
"workbench.iconTheme" = "file-icons";
"files.autoSave" = "afterDelay";
"editor.formatOnSave" = true;
"nix.formatterPath" = "nixpkgs-fmt";
"colorize.languages" = [
"javascript"
"nix"
];
};
};
}; };
# This value determines the Home Manager release that your # This value determines the Home Manager release that your