forked from fabian/nix_config
modularize browsers
This commit is contained in:
parent
f5cfd50183
commit
50943bb142
4 changed files with 21 additions and 2 deletions
19
home/modules/browsers.nix
Normal file
19
home/modules/browsers.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -10,5 +10,6 @@
|
|||
./baseline.nix
|
||||
./steam
|
||||
./yubikey.nix
|
||||
./browsers.nix
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue