Working on reshuffling

This commit is contained in:
2026-03-19 07:36:57 +00:00
parent 57382163ce
commit 923ed0119c
2 changed files with 10 additions and 12 deletions
@@ -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 ];
};
}