forked from fabian/nix_config
27 lines
488 B
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}'";
|
|
}
|
|
];
|
|
};
|
|
}
|