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
];
};
}