From 0716338f650a6db8855ea989c7bcd2ddae2b13bf Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 4 Dec 2024 07:18:27 +0000 Subject: [PATCH] Set firefox home page: home-assistant by default, Nucleus for work machines --- system/home/browser/firefox.nix | 8 +++++++- system/work.nix | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/system/home/browser/firefox.nix b/system/home/browser/firefox.nix index b9d668c3..eac719e1 100644 --- a/system/home/browser/firefox.nix +++ b/system/home/browser/firefox.nix @@ -1,4 +1,9 @@ -{ config, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: { stylix.targets.firefox.enable = false; programs = { @@ -114,6 +119,7 @@ bookmarks = builtins.fromJSON (builtins.readFile ./bookmarks.json); settings = { "app.shield.optoutstudies.enabled" = false; + "browser.startup.homepage" = lib.mkDefault "https://home.xenia.me.uk"; "browser.tabs.inTitlebar" = 0; "browser.bookmarks.addedImportButton" = false; "browser.bookmarks.showMobileBookmarks" = false; diff --git a/system/work.nix b/system/work.nix index ed6a5969..ec5e7330 100644 --- a/system/work.nix +++ b/system/work.nix @@ -6,7 +6,7 @@ imports = [ ./home/openfortivpn/ukaea.nix ]; programs = { git.userEmail = config.accounts.email.accounts.outlook.address; - qutebrowser.settings.url.default_page = "https://nucleus.ukaea.uk"; + firefox.profiles.user.settings."browser.startup.homepage" = "https://nucleus.ukaea.uk"; }; accounts.email.accounts = { proton.primary = lib.mkForce false;