Advertisement
Un1XX388

firefox.nix

Jan 20th, 2024
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.59 KB | Source Code | 0 0
  1. { config, pkgs, user, ... }: {
  2. programs.firefox = {
  3. enable = true;
  4. # TODO: Test this by disabling it while in gnome and seeing if anything changes.
  5. package = pkgs.firefox.override {
  6. # See nixpkgs' firefox/wrapper.nix to check which options you can use
  7. cfg = {
  8. # Gnome shell native connector
  9. enableGnomeExtensions = true;
  10. };
  11. };
  12. profiles = {
  13. "${user.name}" = {
  14. bookmarks = [
  15. {
  16. name = "Bookmarks Toolbar";
  17. toolbar = true;
  18. bookmarks = [
  19. {
  20. name = "T-Mobile Router";
  21. url = "http://192.168.12.1/";
  22. tags = [ "t_mobile" "router" ];
  23. }
  24. {
  25. name = "Code";
  26. bookmarks = [
  27. {
  28. name = "POSIX_Shell";
  29. bookmarks = [
  30. {
  31. name = "Articles/Info";
  32. bookmarks = [
  33. {
  34. name = "rothgar/awesome-tuis";
  35. url = "https://github.com/rothgar/awesome-tuis";
  36. tags = [ "code" "posix" "shell" "article" "info" ];
  37. }
  38. ];
  39. }
  40. {
  41. name = "Docs";
  42. bookmarks = [
  43. {
  44. name = "dodie/testing-in-bash";
  45. url = "https://github.com/dodie/testing-in-bash/";
  46. tags = [ "code" "posix" "shell" "unit" "test" "testing" ];
  47. }
  48. {
  49. name = "POSIX Extended Regex";
  50. url = "https://docs.thousandeyes.com/product-documentation/internet-and-wan-monitoring/tests/http-server-tests/posix-extended-regular-expression-syntax";
  51. tags = [ "code" "posix" "shell" "docs" "regex" ];
  52. }
  53. {
  54. name = "POSIX-Extended Regex";
  55. url = "https://en.wikibooks.org/wiki/Regular_Expressions/POSIX-Extended_Regular_Expressions";
  56. tags = [ "code" "posix" "shell" "docs" "regex" ];
  57. }
  58. {
  59. name = "Shell Comparison";
  60. url = "https://en.wikipedia.org/wiki/Comparison_of_command_shells";
  61. tags = [ "code" "posix" "shell" "docs" "comparison" ];
  62. }
  63. {
  64. name = "Base Specifications";
  65. url = "https://pubs.opengroup.org/onlinepubs/9699919799/";
  66. tags = [ "code" "posix" "shell" "docs" "ieee" ];
  67. }
  68. {
  69. name = "POSIX I/O Redirection";
  70. url = "https://www.ibm.com/docs/en/aix/7.1?topic=ks-input-output-redirection-in-korn-shell-posix-shell";
  71. tags = [ "code" "posix" "shell" "docs" "redirection" ];
  72. }
  73. {
  74. name = "Determine the Current Shell";
  75. url = "https://www.baeldung.com/linux/find-current-shell";
  76. tags = [ "code" "posix" "shell" "docs" "current" ];
  77. }
  78. {
  79. name = "Print to the Same Line";
  80. url = "https://www.baeldung.com/linux/echo-printf-overwrite-terminal-line";
  81. tags = [ "code" "posix" "shell" "docs" "print" "same" "line" ];
  82. }
  83. {
  84. name = "Catch Signls";
  85. url = "https://unix.stackexchange.com/questions/520035/exit-trap-with-posix";
  86. tags = [ "code" "posix" "shell" "docs" "trap catch signls" ];
  87. }
  88. {
  89. name = "String Manipulation";
  90. url = "https://www.geeksforgeeks.org/string-manipulation-in-shell-scripting/";
  91. tags = [ "code" "posix" "shell" "docs" "stirng" "manipulation" ];
  92. }
  93. {
  94. name = "styleguide";
  95. url = "https://google.github.io/styleguide/shellguide.html#s4-comments";
  96. tags = [ "code" "posix" "shell" "docs" "style" "guide" ];
  97. }
  98. {
  99. name = "Determine Shell";
  100. url = "https://unix.stackexchange.com/questions/9501/how-to-test-what-shell-i-am-using-in-a-terminal";
  101. tags = [ "code" "posix" "shell" "docs" "detemrine" ];
  102. }
  103. {
  104. name = "Special Characters (Control Characters)";
  105. url = "https://en.wikipedia.org/wiki/Control_character";
  106. tags = [ "code" "posix" "shell" "docs" "special" "chracters" "control" ];
  107. }
  108. {
  109. name = "Best Practices";
  110. url = "https://bertvv.github.io/cheat-sheets/Bash.html";
  111. tags = [ "code" "posix" "shell" "docs" "best" "practices" ];
  112. }
  113. {
  114. name = "Linux File Structure";
  115. url = "https://i.stack.imgur.com/BlpRb.png";
  116. tags = [ "code" "posix" "linux" "file" "structure" ];
  117. }
  118. ];
  119. }
  120. {
  121. name = "Libraries";
  122. bookmarks = [
  123. ];
  124. }
  125. {
  126. name = "Tools";
  127. bookmarks = [
  128. {
  129. name = "Twin-twinrc";
  130. url = "https://github.com/cosmos72/twin/blob/master/twinrc";
  131. tags = [ "code" "posix" "shell" "tool" "twin" ];
  132. }
  133. {
  134. name = "Tmux";
  135. url = "https://github.com/nordtheme/tmux";
  136. tags = [ "code" "posix" "shell" "tool" "tmux" ];
  137. }
  138. {
  139. name = "pgrange/bash_unit";
  140. url = "https://github.com/pgrange/bash_unit";
  141. tags = [ "code" "posix" "shell" "unit" "test" "testing" "library" ];
  142. }
  143. {
  144. name = "shellspec/shellspec";
  145. url = "https://github.com/shellspec/shellspec";
  146. tags = [ "code" "posix" "shell" "tool" "spec" "shellspec" ];
  147. }
  148. ];
  149. }
  150. ];
  151. }
  152. {
  153. name = "C++";
  154. bookmarks = [
  155. {
  156. name = "Docs";
  157. bookmarks = [
  158. {
  159. name = "Google C++ Style Guide";
  160. url = "https://google.github.io/styleguide/cppguide.html#General_Naming_Rules";
  161. tags = [ "code" "docs" "c++" "documentation" ];
  162. }
  163. ];
  164. }
  165. ];
  166. }
  167. {
  168. name = "Arduino";
  169. bookmarks = [
  170. {
  171. name = "Docs";
  172. bookmarks = [
  173. {
  174. name = "How to organize my Arduino projects' structure for easy source control? - Arduino Stack Exchange";
  175. url = "https://arduino.stackexchange.com/questions/348/how-to-organize-my-arduino-projects-structure-for-easy-source-control";
  176. tags = [ "code" "docs" "documentation" "arduino" ];
  177. }
  178. ];
  179. }
  180. ];
  181. }
  182. {
  183. name = "Mine";
  184. bookmarks = [
  185. {
  186. name = "ReedClanton/shell_base";
  187. url = "https://github.com/ReedClanton/shell_base";
  188. tags = [ "code" "shell" "mine" "repo" "base" ];
  189. }
  190. {
  191. name = "Coverage report";
  192. url = "file:///home/reedclanton/git/shell_base/coverage/index.html";
  193. tags = [ "code" "test" "coverage" "report" ];
  194. }
  195. ];
  196. }
  197. {
  198. name = "GitHub Apps";
  199. bookmarks = [
  200. {
  201. name = "Epic Generator";
  202. url = "https://github.com/TimonVS/epic-generator";
  203. tags = [ "code" "github" "apps" "epic" "generator" ];
  204. }
  205. ];
  206. }
  207. {
  208. name = "Web";
  209. bookmarks = [
  210. {
  211. name = "Tools";
  212. bookmarks = [
  213. {
  214. name = "CSS/HTML/XML/JavaScript/PHP/JSON Formatter";
  215. url = "https://webformatter.com/css";
  216. tags = [ "code" "tool" "html" "web" "formatter" "css" "xml" "javascript" "php" "json" ];
  217. }
  218. {
  219. name = "HTML Colors";
  220. url = "https://www.w3schools.com/colors/colors_names.asp";
  221. tags = [ "code" "tool" "html" "web" "color" ];
  222. }
  223. {
  224. name = "Tmux Cheat Sheet";
  225. url = "https://tmuxcheatsheet.com/";
  226. tags = [ "tool" "tmux" "cheat" "sheet" ];
  227. }
  228. ];
  229. }
  230. {
  231. name = "HTML";
  232. bookmarks = [
  233. {
  234. name = "HTML - Named character references";
  235. url = "https://www.w3.org/TR/2011/WD-html5-20110525/named-character-references.html";
  236. tags = [ "code" "html" "character" ];
  237. }
  238. {
  239. name = "HTML Checker";
  240. url = "https://validator.w3.org/nu/#textarea";
  241. tags = [ "code" "html" "checker" "validator" ];
  242. }
  243. ];
  244. }
  245. ];
  246. }
  247. ];
  248. }
  249. {
  250. name = "Pinned";
  251. bookmarks = [
  252. {
  253. name = "5";
  254. url = "https://www.youtube.com/";
  255. }
  256. ];
  257. }
  258. {
  259. name = "Tools";
  260. bookmarks = [
  261. {
  262. name = "Safing.io";
  263. url = "https://safing.io/";
  264. tags = [ "tool" "safing" "io" "foss" "privacy" ];
  265. }
  266. {
  267. name = "Home | endoflife.date";
  268. url = "https://endoflife.date/";
  269. }
  270. {
  271. name = "Text to ASCII Art Generator (TAAG)";
  272. url = "http://www.patorjk.com/software/taag/#p=display";
  273. tags = [ "generator" "tool" "ascii" "art" "text" ];
  274. }
  275. ];
  276. }
  277. {
  278. name = "localhost:5000";
  279. url = "http://localhost:5000/";
  280. tags = [ "local" ];
  281. }
  282. {
  283. name = "NixOS Tabs";
  284. bookmarks = [
  285. {
  286. name = "NixOS 23.05 manual | Nix & NixOS";
  287. url = "https://nixos.org/manual/nixos/stable/";
  288. tags = [ "nixos" ];
  289. }
  290. {
  291. name = "NixOS Search";
  292. url = "https://search.nixos.org/packages?channel=unstable&show=tmuxPlugins.sidebar&from=0&size=50&sort=alpha_asc&type=packages&query=tmuxPlugins";
  293. tags = [ "nixos" ];
  294. }
  295. {
  296. name = "Configuration Collection";
  297. url = "https://nixos.wiki/wiki/Configuration_Collection";
  298. }
  299. {
  300. name = "Home Manager Manual";
  301. url = "https://nix-community.github.io/home-manager/index.xhtml#sec-install-standalone";
  302. }
  303. {
  304. name = "Home Manager - Configuration Options (Appendix A)";
  305. url = "https://nix-community.github.io/home-manager/options.xhtml";
  306. }
  307. {
  308. name = "Vimjoyer - YouTube";
  309. url = "https://www.youtube.com/@vimjoyer/videos";
  310. }
  311. {
  312. name = "Nix home-manager tutorial: Declare your entire home directory - YouTube";
  313. url = "https://www.youtube.com/watch?v=FcC2dzecovw";
  314. }
  315. {
  316. name = "Extending NixOS Configurations";
  317. url = "https://hoverbear.org/blog/extending-nixos-configurations/";
  318. }
  319. {
  320. name = "Declarative GNOME configuration with NixOS";
  321. url = "https://hoverbear.org/blog/declarative-gnome-configuration-in-nixos/";
  322. }
  323. {
  324. name = "neoclide/coc.nvim: Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.";
  325. url = "https://github.com/neoclide/coc.nvim";
  326. }
  327. {
  328. name = "nix-community/nixvim: Configure Neovim with Nix! [maintainer=@pta2002, @traxys, @GaetanLepage]";
  329. url = "https://github.com/nix-community/nixvim";
  330. }
  331. {
  332. name = "tmux-python/tmuxp: 🖥️ tmux session manager. built on libtmux";
  333. url = "https://github.com/tmux-python/tmuxp";
  334. }
  335. {
  336. name = "Error: reading symbolic link '/nix/var/nix/profiles/per-user/root/channels/': No such file or directory - Help - NixOS Discourse";
  337. url = "https://discourse.nixos.org/t/error-reading-symbolic-link-nix-var-nix-profiles-per-user-root-channels-no-such-file-or-directory/34838";
  338. }
  339. {
  340. name = "(4) NixOS Config - Autologin - Flatpak - Fonts - Polkit - Release Upgrade - YouTube";
  341. url = "https://www.youtube.com/watch?v=IRRtk320j2A";
  342. }
  343. {
  344. name = "Is it possible to configure flatpaks with home-manager? : r/NixOS";
  345. url = "https://www.reddit.com/r/NixOS/comments/14uj2b6/is_it_possible_to_configure_flatpaks_with/";
  346. tags = [ "nixos" "flatpak" ];
  347. }
  348. {
  349. name = "Install on Linux - Safing Docs";
  350. url = "https://docs.safing.io/portmaster/install/linux#manual-install-and-launching";
  351. }
  352. {
  353. name = "My E-Mail configuration: Nix & Home-Manager, Notmuch & mbsync - beb.ninja";
  354. url = "https://beb.ninja/post/email/";
  355. }
  356. {
  357. name = "gauteh/lieer: Fast email-fetching and sending and two-way tag synchronization between notmuch and GMail";
  358. url = "https://github.com/gauteh/lieer";
  359. }
  360. {
  361. name = "gauteh/lieer: Fast email-fetching and sending and two-way tag synchronization between notmuch and GMail";
  362. url = "https://github.com/gauteh/lieer/";
  363. }
  364. {
  365. name = "getting-started";
  366. url = "https://notmuchmail.org/getting-started/";
  367. }
  368. ];
  369. }
  370. {
  371. name = "Workout";
  372. bookmarks = [
  373. {
  374. name = "Routine (Scroll to Pure Strength)";
  375. url = "https://www.hybridcalisthenics.com/programs";
  376. tags = [ "workout" "strength" "routine" ];
  377. }
  378. {
  379. name = "Exercises";
  380. bookmarks = [
  381. {
  382. name = "Pushups";
  383. url = "https://www.hybridcalisthenics.com/advanced-incline-pushups";
  384. tags = [ "workout" "pushup" "pushups" ];
  385. }
  386. {
  387. name = "Leg Raises (Move on to L-Sit)";
  388. url = "https://www.hybridcalisthenics.com/alternating-leg-raises";
  389. tags = [ "workout" "leg" "raise" "exercise" ];
  390. }
  391. {
  392. name = "L-Sit";
  393. url = "https://www.youtube.com/watch?v=wuDgmAr2ez8";
  394. tags = [ "workout" "monday" "l-sit" "l" "sit" ];
  395. }
  396. {
  397. name = "Squats";
  398. url = "https://www.hybridcalisthenics.com/assisted-squats";
  399. tags = [ "workout" "squats" "exercise" "squat" ];
  400. }
  401. {
  402. name = "Pullups";
  403. url = "https://www.hybridcalisthenics.com/horizontal-pullups";
  404. tags = [ "workout" "pullup" "exercise" "pullups" ];
  405. }
  406. {
  407. name = "Bridges";
  408. url = "https://www.hybridcalisthenics.com/straight-bridges";
  409. tags = [ "workout" "bridges" "exercise" "bridge" ];
  410. }
  411. {
  412. name = "Clutch Flags";
  413. url = "https://www.hybridcalisthenics.com/clutchflags";
  414. tags = [ "workout" "clutch" "flags" "exercise" "flag" ];
  415. }
  416. {
  417. name = "Twists";
  418. url = "https://www.hybridcalisthenics.com/straight-leg-twists";
  419. tags = [ "workout" "exercise" "twist" "twists" ];
  420. }
  421. ];
  422. }
  423. ];
  424. }
  425. ];
  426. }
  427. ];
  428. # containers = {
  429. # };
  430. # extensions = [ ];
  431. id = 0;
  432. isDefault = true;
  433. search = {
  434. default = "Google";
  435. engines = {
  436. "Flathub" = {
  437. urls = [{ template = "https://flathub.org/apps/search?q={searchTerms}"; }];
  438. iconUpdateURL = "https://flathub.org/_next/static/media/flathub-logo-toolbar.d9915edb.svg";
  439. updateInterval = 24 * 60 * 60 * 1000; # Update every day.
  440. };
  441. "Home Manager Options" = {
  442. urls = [{
  443. template = "https://mipmip.github.io/home-manager-option-search";
  444. params = [ { name = "query"; value = "{searchTerms}"; } ];
  445. }];
  446. iconUpdateURL = "https://avatars.githubusercontent.com/u/33221035";
  447. updateInterval = 24 * 60 * 60 *1000; # Update every day.
  448. definedAliases = [ "@hm" ];
  449. };
  450. "Nix Packages" = {
  451. urls = [{
  452. template = "https://search.nixos.org/packages";
  453. params = [
  454. { name = "type"; value = "packages"; }
  455. { name = "query"; value = "{searchTerms}"; }
  456. ];
  457. }];
  458. icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
  459. definedAliases = [ "@np" ];
  460. };
  461. "Nix Options" = {
  462. urls = [{
  463. template = "https://search.nixos.org/options";
  464. params = [
  465. { name = "type"; value = "packages"; }
  466. { name = "query"; value = "{searchTerms}"; }
  467. ];
  468. }];
  469. icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
  470. definedAliases = [ "@no" ];
  471. };
  472. "NixOS Wiki" = {
  473. urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];
  474. iconUpdateURL = "https://nixos.wiki/favicon.png";
  475. updateInterval = 24 * 60 * 60 * 1000; # Update every day.
  476. defineAliases = [ "@nw" ];
  477. };
  478. "Google".metaData.alias = "@g";
  479. };
  480. force = true;
  481. order = [
  482. "Google"
  483. "Nix Packages"
  484. "Nix Options"
  485. "Nix Wiki"
  486. "Home Manager Options"
  487. "Flathub"
  488. "DuckDuckGo"
  489. ];
  490. privateDefault = "DuckDuckGo";
  491. };
  492. settings = {
  493. "browser.startup.homepage" = "https://www.google.com";
  494. };
  495. };
  496. };
  497. };
  498. }
  499.  
Tags: nix nixos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement