From 2e7a4ea132d06ac2ab2d5eaa6741d04a3ec9867f Mon Sep 17 00:00:00 2001 From: IogaMaster Date: Tue, 21 Nov 2023 14:56:43 -0700 Subject: [PATCH] feat: add firefox --- modules/nixos/apps/firefox/default.nix | 22 ++++++++++++++++++++++ modules/nixos/suites/desktop/default.nix | 2 +- systems/x86_64-linux/orion/default.nix | 2 ++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 modules/nixos/apps/firefox/default.nix diff --git a/modules/nixos/apps/firefox/default.nix b/modules/nixos/apps/firefox/default.nix new file mode 100644 index 0000000..a6dd5f6 --- /dev/null +++ b/modules/nixos/apps/firefox/default.nix @@ -0,0 +1,22 @@ +{ + options, + config, + pkgs, + lib, + ... +}: +with lib; +with lib.custom; let + cfg = config.apps.firefox; +in { + options.apps.firefox = with types; { + enable = mkBoolOpt false "Enable or disable firefox browser"; + }; + + config = mkIf cfg.enable { + home.programs.firefox = { + enable = true; + package = pkgs.librewolf; + }; + }; +} diff --git a/modules/nixos/suites/desktop/default.nix b/modules/nixos/suites/desktop/default.nix index 92d680a..0b0df38 100644 --- a/modules/nixos/suites/desktop/default.nix +++ b/modules/nixos/suites/desktop/default.nix @@ -15,7 +15,7 @@ in { config = mkIf cfg.enable { desktop.hyprland.enable = true; - apps.brave.enable = true; + apps.firefox.enable = true; apps.discord.enable = true; apps.tools.gnupg.enable = true; diff --git a/systems/x86_64-linux/orion/default.nix b/systems/x86_64-linux/orion/default.nix index 3f613b1..ef95c4c 100644 --- a/systems/x86_64-linux/orion/default.nix +++ b/systems/x86_64-linux/orion/default.nix @@ -15,6 +15,8 @@ bottles ]; + apps.brave.enable = true; + desktop.autoLogin = true; # ======================== DO NOT CHANGE THIS ========================