From ab6d56a2f3e5483c875061e3681e442723a7a9ca Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 27 Jun 2024 22:16:05 -0400 Subject: [PATCH] aly: add firefox bookmarks and extensions for work profile --- homes/aly/bookmarks-work.html | 22 ++++++++++++++++++++ homes/{aly.nix => aly/default.nix} | 26 ++++++++++++++++++++++++ homes/{dustin.nix => dustin/default.nix} | 0 homes/{morgan.nix => morgan/default.nix} | 0 hosts/fallarbor/home.nix | 4 ++-- hosts/lavaridge/home.nix | 2 +- hosts/mandarin/home.nix | 4 ++-- hosts/mauville/home.nix | 4 ++-- hosts/petalburg/home.nix | 2 +- hosts/rustboro/home.nix | 2 +- nixosModules/apps/firefox/default.nix | 2 +- 11 files changed, 58 insertions(+), 10 deletions(-) create mode 100644 homes/aly/bookmarks-work.html rename homes/{aly.nix => aly/default.nix} (89%) rename homes/{dustin.nix => dustin/default.nix} (100%) rename homes/{morgan.nix => morgan/default.nix} (100%) diff --git a/homes/aly/bookmarks-work.html b/homes/aly/bookmarks-work.html new file mode 100644 index 00000000..fa6fd83a --- /dev/null +++ b/homes/aly/bookmarks-work.html @@ -0,0 +1,22 @@ + + + + +Bookmarks +

Bookmarks Menu

+ +

+

Bookmarks Toolbar

+

+

Calendar +
Slack +
OneLogin +
Admin Panel +
Ops Dashboard +
Scouting Sheet +
Preset +

+

diff --git a/homes/aly.nix b/homes/aly/default.nix similarity index 89% rename from homes/aly.nix rename to homes/aly/default.nix index 785c1989..3eb984e7 100644 --- a/homes/aly.nix +++ b/homes/aly/default.nix @@ -39,7 +39,31 @@ firefox = { enable = true; + profiles.work = { + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + decentraleyes + keepassxc-browser + ublock-origin + consent-o-matic + zoom-redirector + ]; + + settings = { + "browser.bookmarks.file" = "${./bookmarks-work.html}"; + "browser.places.importBookmarksHTML" = true; + "browser.toolbars.bookmarks.visibility" = "newtab"; + "identity.fxaccounts.enabled" = false; + "network.cookie.cookieBehavior" = 1; + "privacy.donottrackheader.enabled" = true; + "privacy.fingerprintingProtection" = true; + "privacy.trackingprotection.emailtracking.enabled" = true; + "privacy.trackingprotection.enabled" = true; + "privacy.trackingprotection.global-checkbox.enabled" = true; + "privacy.trackingprotection.socialtracking.enabled" = true; + "signon.rememberSignons" = false; + }; + id = 1; search = { @@ -61,6 +85,7 @@ }; }; }; + profiles.default = { extensions = with pkgs.nur.repos.rycee.firefox-addons; [ augmented-steam @@ -116,6 +141,7 @@ }; settings = { + "browser.toolbars.bookmarks.visibility" = "newtab"; "network.cookie.cookieBehavior" = 1; "permissions.default.desktop-notification" = 2; "privacy.donottrackheader.enabled" = true; diff --git a/homes/dustin.nix b/homes/dustin/default.nix similarity index 100% rename from homes/dustin.nix rename to homes/dustin/default.nix diff --git a/homes/morgan.nix b/homes/morgan/default.nix similarity index 100% rename from homes/morgan.nix rename to homes/morgan/default.nix diff --git a/hosts/fallarbor/home.nix b/hosts/fallarbor/home.nix index 8edd44d2..3831ea0c 100644 --- a/hosts/fallarbor/home.nix +++ b/hosts/fallarbor/home.nix @@ -6,7 +6,7 @@ ... }: { home-manager = { - users.aly = import ../../homes/aly.nix; - users.dustin = import ../../homes/dustin.nix; + users.aly = import ../../homes/aly; + users.dustin = import ../../homes/dustin; }; } diff --git a/hosts/lavaridge/home.nix b/hosts/lavaridge/home.nix index 9a984716..cb899ba4 100644 --- a/hosts/lavaridge/home.nix +++ b/hosts/lavaridge/home.nix @@ -16,6 +16,6 @@ }; } ]; - users.aly = import ../../homes/aly.nix; + users.aly = import ../../homes/aly; }; } diff --git a/hosts/mandarin/home.nix b/hosts/mandarin/home.nix index 9d78cdf1..9ddd117b 100644 --- a/hosts/mandarin/home.nix +++ b/hosts/mandarin/home.nix @@ -16,7 +16,7 @@ }; } ]; - users.aly = import ../../homes/aly.nix; - users.morgan = import ../../homes/morgan.nix; + users.aly = import ../../homes/aly; + users.morgan = import ../../homes/morgan; }; } diff --git a/hosts/mauville/home.nix b/hosts/mauville/home.nix index bd8b6159..ea04e6db 100644 --- a/hosts/mauville/home.nix +++ b/hosts/mauville/home.nix @@ -64,7 +64,7 @@ ]; users.aly = { - imports = [../../homes/aly.nix]; + imports = [../../homes/aly]; systemd.user = { services = { backblaze-sync = { @@ -141,6 +141,6 @@ }; }; }; - users.dustin = import ../../homes/dustin.nix; + users.dustin = import ../../homes/dustin; }; } diff --git a/hosts/petalburg/home.nix b/hosts/petalburg/home.nix index e03c458f..84245469 100644 --- a/hosts/petalburg/home.nix +++ b/hosts/petalburg/home.nix @@ -16,6 +16,6 @@ ''; } ]; - users.aly = import ../../homes/aly.nix; + users.aly = import ../../homes/aly; }; } diff --git a/hosts/rustboro/home.nix b/hosts/rustboro/home.nix index a8a00f8c..d1ac1557 100644 --- a/hosts/rustboro/home.nix +++ b/hosts/rustboro/home.nix @@ -24,6 +24,6 @@ }; } ]; - users.aly = import ../../homes/aly.nix; + users.aly = import ../../homes/aly; }; } diff --git a/nixosModules/apps/firefox/default.nix b/nixosModules/apps/firefox/default.nix index 34ed03c6..3f829aea 100644 --- a/nixosModules/apps/firefox/default.nix +++ b/nixosModules/apps/firefox/default.nix @@ -75,7 +75,7 @@ }; NewTabPage = false; - NoDefaultBookmarks = true; + NoDefaultBookmarks = false; # Enabling this prevents declaratively setting bookmarks. OfferToSaveLoginsDefault = false; OverrideFirstRunPage = ""; OverridePostUpdatePage = "";