mirror of
https://github.com/tboerger/nixos-config
synced 2026-11-30 01:04:46 +01:00
34 lines
404 B
Nix
34 lines
404 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
options,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.personal.programs.browser;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
personal = {
|
|
programs = {
|
|
browser = {
|
|
enable = mkEnableOption "Browser";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment = {
|
|
systemPackages = with pkgs; [
|
|
firefox
|
|
google-chrome
|
|
];
|
|
};
|
|
};
|
|
}
|