mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
move firefox config to it's own file, use spotify&discord in browser
This commit is contained in:
parent
6a83f31cee
commit
e1ead2df69
5 changed files with 118 additions and 116 deletions
|
@ -5,17 +5,13 @@ let
|
||||||
inherit (pkgs) stdenv;
|
inherit (pkgs) stdenv;
|
||||||
appCommands = {
|
appCommands = {
|
||||||
calibre = "Calibre";
|
calibre = "Calibre";
|
||||||
discord = "Discord";
|
|
||||||
email = "Mail";
|
email = "Mail";
|
||||||
firefox = "Firefox";
|
|
||||||
ical = "Calendar";
|
ical = "Calendar";
|
||||||
im = "Messages";
|
im = "Messages";
|
||||||
maps = "Maps";
|
maps = "Maps";
|
||||||
music = "Music";
|
music = "Music";
|
||||||
safari = "Safari";
|
safari = "Safari";
|
||||||
settings = "System Settings";
|
settings = "System Settings";
|
||||||
spotify = "Spotify";
|
|
||||||
web = "Firefox";
|
|
||||||
zotero = "Zotero";
|
zotero = "Zotero";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
@ -46,7 +46,6 @@ rec {
|
||||||
imports = [
|
imports = [
|
||||||
./accounts.nix
|
./accounts.nix
|
||||||
./darwin.nix
|
./darwin.nix
|
||||||
./emacs.nix
|
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
];
|
];
|
||||||
|
|
111
home/firefox.nix
Normal file
111
home/firefox.nix
Normal file
|
@ -0,0 +1,111 @@
|
||||||
|
{ config, pkgs, ... }: {
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
profiles.primary = {
|
||||||
|
id = 0;
|
||||||
|
isDefault = true;
|
||||||
|
search = {
|
||||||
|
force = true;
|
||||||
|
default = "Google";
|
||||||
|
order = [
|
||||||
|
"Google"
|
||||||
|
"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" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"NixOS Wiki" = {
|
||||||
|
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
|
||||||
|
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
||||||
|
updateInterval = 24 * 60 * 60 * 1000; # every day
|
||||||
|
definedAliases = [ "@nw" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
"Bing".metaData.hidden = true;
|
||||||
|
"Google".metaData.alias = "@g";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
"app.update.auto" = false;
|
||||||
|
"app.update.checkInstallTime" = false;
|
||||||
|
"app.update.silent" = true;
|
||||||
|
"browser.aboutConfig.showWarning" = false;
|
||||||
|
"browser.bookmarks.showMobileBookmarks" = true;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.topsites" = false;
|
||||||
|
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
|
||||||
|
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
|
||||||
|
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
|
||||||
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||||
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||||
|
"browser.newtabpage.enabled" = false;
|
||||||
|
"browser.search.isUS" = false;
|
||||||
|
"browser.search.region" = "CA";
|
||||||
|
"browser.startup.homepage" = "";
|
||||||
|
"browser.warnOnQuitShortcut" = false;
|
||||||
|
"distribution.searchplugins.defaultLocale" = "en-CA";
|
||||||
|
"extensions.recommendations.hideNotice" = true;
|
||||||
|
"general.autoScroll" = false;
|
||||||
|
"general.useragent.locale" = "en-CA";
|
||||||
|
"layout.spellcheckDefault" = false;
|
||||||
|
"media.autoplay.default" = 5;
|
||||||
|
"permissions.default.camera" = 2;
|
||||||
|
"permissions.default.desktop-notifications" = 2;
|
||||||
|
"permissions.default.microphone" = 2;
|
||||||
|
"print_printer" = "Mozilla Save to PDF";
|
||||||
|
"privacy.donottrackheader.enabled" = true;
|
||||||
|
"signon.rememberSignons" = false;
|
||||||
|
};
|
||||||
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
browserpass
|
||||||
|
#bypass-paywalls-clean
|
||||||
|
clearurls
|
||||||
|
don-t-fuck-with-paste
|
||||||
|
dracula-dark-colorscheme
|
||||||
|
edit-with-emacs
|
||||||
|
fastforward
|
||||||
|
i-dont-care-about-cookies
|
||||||
|
musescore-downloader
|
||||||
|
offline-qr-code-generator
|
||||||
|
ublock-origin
|
||||||
|
zoom-redirector
|
||||||
|
];
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "wikipedia";
|
||||||
|
keyword = "wiki";
|
||||||
|
url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "kernel.org";
|
||||||
|
url = "https://www.kernel.org";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Nix sites";
|
||||||
|
bookmarks = [
|
||||||
|
{
|
||||||
|
name = "homepage";
|
||||||
|
url = "https://nixos.org/";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "wiki";
|
||||||
|
keyword = "nixwiki";
|
||||||
|
url = "https://nixos.wiki/";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, config, inputs, pkgs, ... }:
|
{ lib, config, inputs, pkgs, ... }: {
|
||||||
|
imports = [ ./emacs.nix ./firefox.nix ];
|
||||||
|
|
||||||
{
|
|
||||||
programs = {
|
programs = {
|
||||||
bash.enableCompletion = true;
|
bash.enableCompletion = true;
|
||||||
|
|
||||||
|
@ -32,111 +32,6 @@
|
||||||
enableAliases = true;
|
enableAliases = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
firefox = {
|
|
||||||
enable = true;
|
|
||||||
profiles.primary = {
|
|
||||||
id = 0;
|
|
||||||
isDefault = true;
|
|
||||||
search = {
|
|
||||||
force = true;
|
|
||||||
default = "Google";
|
|
||||||
order = [
|
|
||||||
"Google"
|
|
||||||
"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" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
"NixOS Wiki" = {
|
|
||||||
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
|
|
||||||
iconUpdateURL = "https://nixos.wiki/favicon.png";
|
|
||||||
updateInterval = 24 * 60 * 60 * 1000; # every day
|
|
||||||
definedAliases = [ "@nw" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
"Bing".metaData.hidden = true;
|
|
||||||
"Google".metaData.alias = "@g";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
settings = {
|
|
||||||
"app.update.auto" = false;
|
|
||||||
"permissions.default.camera" = 2;
|
|
||||||
"permissions.default.microphone" = 2;
|
|
||||||
"permissions.default.desktop-notifications" = 2;
|
|
||||||
"print_printer" = "Mozilla Save to PDF";
|
|
||||||
"media.autoplay.default" = 5;
|
|
||||||
"general.autoScroll" = false;
|
|
||||||
"extensions.recommendations.hideNotice" = true;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
|
||||||
"browser.newtabpage.activity-stream.feeds.topsites" = false;
|
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" = false;
|
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includePocket" = false;
|
|
||||||
"browser.newtabpage.activity-stream.section.highlights.includeVisited" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsored" = false;
|
|
||||||
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
|
||||||
"browser.newtabpage.enabled" = false;
|
|
||||||
"signon.rememberSignons" = false;
|
|
||||||
"privacy.donottrackheader.enabled" = true;
|
|
||||||
"browser.startup.homepage" = "";
|
|
||||||
"browser.search.region" = "CA";
|
|
||||||
"browser.search.isUS" = false;
|
|
||||||
"distribution.searchplugins.defaultLocale" = "en-CA";
|
|
||||||
"general.useragent.locale" = "en-CA";
|
|
||||||
"browser.bookmarks.showMobileBookmarks" = true;
|
|
||||||
};
|
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
||||||
browserpass
|
|
||||||
#bypass-paywalls-clean
|
|
||||||
clearurls
|
|
||||||
don-t-fuck-with-paste
|
|
||||||
dracula-dark-colorscheme
|
|
||||||
edit-with-emacs
|
|
||||||
fastforward
|
|
||||||
i-dont-care-about-cookies
|
|
||||||
multi-account-containers
|
|
||||||
musescore-downloader
|
|
||||||
offline-qr-code-generator
|
|
||||||
ublock-origin
|
|
||||||
zoom-redirector
|
|
||||||
];
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "wikipedia";
|
|
||||||
keyword = "wiki";
|
|
||||||
url = "https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "kernel.org";
|
|
||||||
url = "https://www.kernel.org";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "Nix sites";
|
|
||||||
bookmarks = [
|
|
||||||
{
|
|
||||||
name = "homepage";
|
|
||||||
url = "https://nixos.org/";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "wiki";
|
|
||||||
keyword = "nixwiki";
|
|
||||||
url = "https://nixos.wiki/";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -273,18 +168,21 @@
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = rec {
|
||||||
cd = "z";
|
cd = "z";
|
||||||
|
discord = "${web} https://discord.com/channels/@me";
|
||||||
e = "emacsclient -c -nw";
|
e = "emacsclient -c -nw";
|
||||||
em = "emacs -nw";
|
em = "emacs -nw";
|
||||||
emw = "emacs";
|
emw = "emacs";
|
||||||
ew = "emacsclient -c";
|
ew = "emacsclient -c";
|
||||||
l = "ls -1";
|
l = "ls -1";
|
||||||
|
nbs = lib.mkIf pkgs.stdenv.isLinux "sudo nixos-rebuild build --flake ${config.home.homeDirectory}/.config/dotfiles.nix#";
|
||||||
np = "nix-shell -p";
|
np = "nix-shell -p";
|
||||||
nrs = lib.mkIf pkgs.stdenv.isLinux "sudo nixos-rebuild switch --flake ${config.home.homeDirectory}/.config/dotfiles.nix#";
|
nrs = lib.mkIf pkgs.stdenv.isLinux "sudo nixos-rebuild switch --flake ${config.home.homeDirectory}/.config/dotfiles.nix#";
|
||||||
nbs = lib.mkIf pkgs.stdenv.isLinux "sudo nixos-rebuild build --flake ${config.home.homeDirectory}/.config/dotfiles.nix#";
|
|
||||||
org = "z ${config.home.sessionVariables.ORGDIR}";
|
org = "z ${config.home.sessionVariables.ORGDIR}";
|
||||||
|
spotify = "${web} https://open.spotify.com/";
|
||||||
ubc = "z ${config.home.sessionVariables.UBCDIR}";
|
ubc = "z ${config.home.sessionVariables.UBCDIR}";
|
||||||
|
web = "${config.programs.firefox.package}/bin/firefox";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,9 @@
|
||||||
environment.loginShell = "${pkgs.zsh}/bin/zsh -l";
|
environment.loginShell = "${pkgs.zsh}/bin/zsh -l";
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
colima
|
colima
|
||||||
discord
|
|
||||||
freecad-mac
|
freecad-mac
|
||||||
iterm2
|
iterm2
|
||||||
qbittorrent-mac
|
qbittorrent-mac
|
||||||
spotify-mac
|
|
||||||
utm
|
utm
|
||||||
vlc-mac
|
vlc-mac
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue