This commit is contained in:
joy 2024-10-05 00:31:24 +02:00
parent 9d400eec55
commit bf0acbb9d7
3 changed files with 153 additions and 167 deletions

View file

@ -1,158 +1,158 @@
{inputs, ...}: let {inputs, ...}: let
userChrome = builtins.readFile (./. + "/userChrome"); userChrome = builtins.readFile (./. + "/userChrome");
in { in {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
profiles.joy = { profiles.joy = {
userChrome = userChrome; userChrome = userChrome;
extensions = with inputs.firefox-addons.packages."x86_64-linux"; [ extensions = with inputs.firefox-addons.packages."x86_64-linux"; [
ublock-origin ublock-origin
darkreader darkreader
libredirect libredirect
search-by-image search-by-image
terms-of-service-didnt-read terms-of-service-didnt-read
istilldontcareaboutcookies istilldontcareaboutcookies
decentraleyes decentraleyes
]; ];
search.engines = { search.engines = {
"4get" = { "4get" = {
urls = [ urls = [
{
template = "https://4get.joygnu.org/web";
params = [
{
name = "s";
value = "{searchTerms}";
}
];
}
];
definedAliases = ["@4get"];
};
};
search.force = true;
search.default = "4get";
bookmarks = [
{
name = "Bookmarks";
toolbar = true;
bookmarks = [
{
name = "Packages";
url = "https://search.nixos.org/packages?channel=unstable";
}
{
name = "Homemanager";
url = "https://home-manager-options.extranix.com";
}
{
name = "Stylix";
url = "https://stylix.danth.me/options/nixos.html";
}
{
name = "Git";
url = "https://git.joygnu.org/";
}
{
name = "Photos";
url = "https://immich.joygnu.org/";
}
{
name = "Translate";
url = "https://trans.joygnu.org/";
}
{
name = "Server";
url = "https://avoro.eu/cp/clientarea.php?action=productdetails&id=27920";
}
{
name = "Domain";
url = "https://ap.www.namecheap.com/domains/list/";
}
{
name = "Hyprland";
url = "https://wiki.hyprland.org/";
}
{
name = "Helix";
url = "https://helix-editor.com/";
}
{
name = "Monkeytype";
url = "https://monkeytype.com/";
}
{
name = "Zophar's Domain";
url = "https://www.zophar.net/music";
}
{
name = "Syncthing";
url = "http://localhost:8384/";
}
{
name = "invidious";
url = "http://localhost:3000/";
}
];
}
];
settings = {
"dom.security.https_only_mode" = true;
"browser.download.panel.shown" = true;
"identity.fxaccounts.enabled" = false;
"signon.rememberSignons" = false;
"browser.urlbar.pocket.featureGate" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.shell.checkDefaultBrowser" = false;
"browser.shell.defaultBrowserCheckCount" = 1;
"privacy.trackingprotection.enabled" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.uiCustomization.state" = ''
{ {
"placements": { template = "https://4get.joygnu.org/web";
"widget-overflow-fixed-list": [], params = [
"nav-bar": [ {
"back-button", name = "s";
"forward-button", value = "{searchTerms}";
"stop-reload-button", }
"urlbar-container", ];
"downloads-button", }
"ublock0_raymondhill_net-browser-action", ];
"addon_darkreader_org-browser-action", definedAliases = ["@4get"];
"_testpilot-containers-browser-action" };
], };
"toolbar-menubar": [ search.force = true;
"menubar-items" search.default = "4get";
],
"TabsToolbar": [ bookmarks = [
"tabbrowser-tabs", {
"new-tab-button", name = "Bookmarks";
"alltabs-button" toolbar = true;
], bookmarks = [
"PersonalToolbar": [ {
"personal-bookmarks" name = "Packages";
] url = "https://search.nixos.org/packages?channel=unstable";
}, }
"seen": [ {
"save-to-pocket-button", name = "Homemanager";
"developer-button", url = "https://home-manager-options.extranix.com";
}
{
name = "Stylix";
url = "https://stylix.danth.me/options/nixos.html";
}
{
name = "Git";
url = "https://git.joygnu.org/";
}
{
name = "Photos";
url = "https://immich.joygnu.org/";
}
{
name = "Translate";
url = "https://trans.joygnu.org/";
}
{
name = "Server";
url = "https://avoro.eu/cp/clientarea.php?action=productdetails&id=27920";
}
{
name = "Domain";
url = "https://ap.www.namecheap.com/domains/list/";
}
{
name = "Hyprland";
url = "https://wiki.hyprland.org/";
}
{
name = "Helix";
url = "https://helix-editor.com/";
}
{
name = "Monkeytype";
url = "https://monkeytype.com/";
}
{
name = "Zophar's Domain";
url = "https://www.zophar.net/music";
}
{
name = "Syncthing";
url = "http://localhost:8384/";
}
{
name = "invidious";
url = "http://localhost:3000/";
}
];
}
];
settings = {
"dom.security.https_only_mode" = true;
"browser.download.panel.shown" = true;
"identity.fxaccounts.enabled" = false;
"signon.rememberSignons" = false;
"browser.urlbar.pocket.featureGate" = false;
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
"browser.shell.checkDefaultBrowser" = false;
"browser.shell.defaultBrowserCheckCount" = 1;
"privacy.trackingprotection.enabled" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.uiCustomization.state" = ''
{
"placements": {
"widget-overflow-fixed-list": [],
"nav-bar": [
"back-button",
"forward-button",
"stop-reload-button",
"urlbar-container",
"downloads-button",
"ublock0_raymondhill_net-browser-action", "ublock0_raymondhill_net-browser-action",
"addon_darkreader_org-browser-action", "addon_darkreader_org-browser-action",
"_testpilot-containers-browser-action" "_testpilot-containers-browser-action"
], ],
"dirtyAreaCache": [ "toolbar-menubar": [
"nav-bar", "menubar-items"
"PersonalToolbar",
"toolbar-menubar",
"TabsToolbar",
"widget-overflow-fixed-list"
], ],
"currentVersion": 18, "TabsToolbar": [
"newElementCount": 4 "tabbrowser-tabs",
} "new-tab-button",
''; "alltabs-button"
}; ],
"PersonalToolbar": [
"personal-bookmarks"
]
},
"seen": [
"save-to-pocket-button",
"developer-button",
"ublock0_raymondhill_net-browser-action",
"addon_darkreader_org-browser-action",
"_testpilot-containers-browser-action"
],
"dirtyAreaCache": [
"nav-bar",
"PersonalToolbar",
"toolbar-menubar",
"TabsToolbar",
"widget-overflow-fixed-list"
],
"currentVersion": 18,
"newElementCount": 4
}
'';
}; };
}; };
};
} }

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { {pkgs, ...}: {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableAutosuggestions = true; enableAutosuggestions = true;
@ -24,23 +24,10 @@
history.size = 1000000; history.size = 1000000;
history.path = ".config/zsh/history"; history.path = ".config/zsh/history";
oh-my-zsh = {
# plugins = [ enable = true;
# { plugins = ["git" "history-substring-search"];
# name = "zsh-autosuggestions"; theme = "simple";
# src = pkgs.fetchFromGitHub { };
# owner = "zsh-users";
# repo = "zsh-autosuggestions";
# rev = "v0.4.0"; # Version
# sha256 = "sha256-bBqJCkhygrXqAfWBsvUNpXu9IrwLyn/ypmTRKSVP0Xw="; # Fetched hash
# };
# }
# ];
# };
oh-my-zsh = {
enable = true;
plugins = [ "git" "history-substring-search" ];
theme = "simple";
};
}; };
} }

View file

@ -1,5 +1,4 @@
{pkgs,...}: {pkgs, ...}: {
{
nix.settings.experimental-features = ["nix-command" "flakes"]; nix.settings.experimental-features = ["nix-command" "flakes"];
time.timeZone = "Europe/Zurich"; time.timeZone = "Europe/Zurich";
system.stateVersion = "23.11"; system.stateVersion = "23.11";