15 lines
282 B
Nix
15 lines
282 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.desktop.browsers.${name};
|
|
name = "chromium";
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
in
|
|
{
|
|
options.desktop.browsers.${name}.enable = mkEnableOption "Enable ${name}";
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.${name}.enable = true;
|
|
};
|
|
}
|