From 1c9261230ed0ec7a3e94bc476cbf3691daeff609 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 20 Jun 2024 14:15:29 +0200 Subject: [PATCH] Add firefox browser --- home/programs/graphical/browsers/default.nix | 1 + .../graphical/browsers/firefox/default.nix | 17 +++++++++++++++++ hosts/herugrim/default.nix | 1 + options/home/programs/default.nix | 1 + 4 files changed, 20 insertions(+) create mode 100644 home/programs/graphical/browsers/firefox/default.nix diff --git a/home/programs/graphical/browsers/default.nix b/home/programs/graphical/browsers/default.nix index 4e82eaa..23b88ae 100644 --- a/home/programs/graphical/browsers/default.nix +++ b/home/programs/graphical/browsers/default.nix @@ -3,6 +3,7 @@ _: { ./chromium ./mullvad ./schizofox + ./firefox ]; } diff --git a/home/programs/graphical/browsers/firefox/default.nix b/home/programs/graphical/browsers/firefox/default.nix new file mode 100644 index 0000000..c3af4cb --- /dev/null +++ b/home/programs/graphical/browsers/firefox/default.nix @@ -0,0 +1,17 @@ +{ + lib, + osConfig, + pkgs, + ... +}: let + inherit (lib) mkIf; + + cfg = osConfig.myOptions.home-manager.programs.browsers.firefox; +in { + config = mkIf cfg.enable { + programs.firefox = { + enable = true; + # TODO: Finish this + }; + }; +} diff --git a/hosts/herugrim/default.nix b/hosts/herugrim/default.nix index ed6c34b..be8acf2 100644 --- a/hosts/herugrim/default.nix +++ b/hosts/herugrim/default.nix @@ -97,6 +97,7 @@ programs = { browsers = { chromium.enable = true; + firefox.enable = true; mullvad-browser.enable = true; schizofox.enable = true; }; diff --git a/options/home/programs/default.nix b/options/home/programs/default.nix index 07ff4bb..ebb153c 100644 --- a/options/home/programs/default.nix +++ b/options/home/programs/default.nix @@ -21,6 +21,7 @@ in browsers = { chromium.enable = mkEnableOption "Chromium browser"; + firefox.enable = mkEnableOption "Firefox browser"; mullvad-browser.enable = mkEnableOption "Mullvad browser"; schizofox.enable = mkEnableOption "Schizophrenic version of Firefox browser"; };