1
0
Fork 0
forked from fabian/nix_config
nix_config_fabian/home/modules/browsers.nix

27 lines
488 B
Nix

{
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
];
# create an option for this
xsession.windowManager.i3.config.startup = [
{
command = "${lib.getExe pkgs.i3-gaps} 'workspace 1; exec ${lib.getExe pkgs.firefox}'";
}
];
};
}