From 61a5aa813a76dfa267b7cf485f210331785b152e Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 7 Feb 2024 07:42:56 +0000 Subject: [PATCH] Set firefox home page to nucleus on work machines Enable home button again --- hosts/Ronin/configuration.nix | 7 ++++++- hosts/Scorch/configuration.nix | 7 ++++++- system/firefox.nix | 3 +-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/hosts/Ronin/configuration.nix b/hosts/Ronin/configuration.nix index 3c10d7ee..b29eecab 100644 --- a/hosts/Ronin/configuration.nix +++ b/hosts/Ronin/configuration.nix @@ -1,4 +1,8 @@ -{pkgs, ...}: { +{ + lib, + pkgs, + ... +}: { # Setup keyfile boot.initrd.secrets = {"/crypto_keyfile.bin" = null;}; @@ -12,4 +16,5 @@ ''; systemPackages = with pkgs; [openfortivpn samba nomachine-client]; }; + programs.firefox.policies.Homepage.URL = lib.mkForce "https://nucleus.ukaea.uk"; } diff --git a/hosts/Scorch/configuration.nix b/hosts/Scorch/configuration.nix index 8a61b39c..875a3b9a 100644 --- a/hosts/Scorch/configuration.nix +++ b/hosts/Scorch/configuration.nix @@ -1,4 +1,8 @@ -{pkgs, ...}: { +{ + lib, + pkgs, + ... +}: { boot.loader.efi.efiSysMountPoint = "/boot/efi"; # Setup keyfile @@ -14,4 +18,5 @@ ''; systemPackages = with pkgs; [openfortivpn samba nomachine-client]; }; + programs.firefox.policies.Homepage.URL = lib.mkForce "https://nucleus.ukaea.uk"; } diff --git a/system/firefox.nix b/system/firefox.nix index 24e021f7..6df0ee70 100644 --- a/system/firefox.nix +++ b/system/firefox.nix @@ -78,7 +78,6 @@ HardwareAcceleration = true; Homepage = { URL = "https://nixos.wiki"; - Additional = ["https://wiki.archlinux.org"]; Locked = true; StartPage = "homepage-locked"; }; @@ -200,7 +199,7 @@ Locked = true; }; SearchBar = "unified"; - ShowHomeButton = false; + ShowHomeButton = true; StartDownloadsInTempDirectory = true; }; };