modularize browsers

This commit is contained in:
Fabian Montero 2024-11-21 01:47:28 -06:00
parent f5cfd50183
commit 50943bb142
4 changed files with 21 additions and 2 deletions

19
home/modules/browsers.nix Normal file
View file

@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.apps.browsers;
in {
options.local.apps.browsers = {
enable = mkEnableOption "Browser home settings";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
chromium
firefox
];
};
}

View file

@ -10,5 +10,6 @@
./baseline.nix
./steam
./yubikey.nix
./browsers.nix
];
}

View file

@ -9,11 +9,9 @@
home.packages = with pkgs; [
calibre
chromium
darktable
deluge
discord
firefox
gcc
gwenview
kdenlive

View file

@ -19,6 +19,7 @@
neovim.enable = true;
steam.enable = true;
yubikey.enable = true;
browsers.enable = true;
};
};