mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-22 18:21:58 +01:00
28 lines
394 B
Nix
28 lines
394 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
|
|
];
|
|
};
|
|
};
|
|
}
|