Skip to content

Commit

Permalink
feat: add firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
IogaMaster committed Nov 21, 2023
1 parent 706b376 commit 2e7a4ea
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
22 changes: 22 additions & 0 deletions modules/nixos/apps/firefox/default.nix
Original file line number Diff line number Diff line change
@@ -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;
};
};
}
2 changes: 1 addition & 1 deletion modules/nixos/suites/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions systems/x86_64-linux/orion/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
bottles
];

apps.brave.enable = true;

desktop.autoLogin = true;

# ======================== DO NOT CHANGE THIS ========================
Expand Down

0 comments on commit 2e7a4ea

Please sign in to comment.