Working on reshuffling
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
# ./generated/modules/apps/zenbrowser.nix
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
packageRef = "zen-browser";
|
||||
in
|
||||
{
|
||||
# Declare the option to enable Zen Browser
|
||||
options.mySystem.apps.zenBrowser.enable =
|
||||
lib.mkEnableOption "Enable Zen Browser";
|
||||
|
||||
# Top-level config without touching `config` inside
|
||||
config = lib.mkIf (lib.getOption "mySystem.apps.zenBrowser.enable") {
|
||||
environment.systemPackages = [ pkgs.${packageRef} ];
|
||||
# Top-level config, fully self-contained
|
||||
config = { config, ... }: lib.mkIf (config.mySystem.apps.zenBrowser.enable) {
|
||||
environment.systemPackages = [ pkgs.zen-browser ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user