Working on reshuffling

This commit is contained in:
2026-03-19 07:38:22 +00:00
parent 923ed0119c
commit 33c6e2920a
2 changed files with 28 additions and 10 deletions
+14 -5
View File
@@ -1,13 +1,22 @@
# ./generated/modules/apps/zenbrowser.nix
{ pkgs, lib, ... }:
{ lib, ... }:
let
# Import the Zen Browser flake directly
zenBrowserFlake = import (builtins.fetchTarball {
url = "https://github.com/youwen5/zen-browser-flake/archive/refs/heads/main.tar.gz";
}) {};
in
{
# Declare the option to enable Zen Browser
# Module option to enable Zen Browser
options.mySystem.apps.zenBrowser.enable =
lib.mkEnableOption "Enable Zen Browser";
# Top-level config, fully self-contained
config = { config, ... }: lib.mkIf (config.mySystem.apps.zenBrowser.enable) {
environment.systemPackages = [ pkgs.zen-browser ];
# Top-level config using dendritic pattern
config = { config, pkgs, ... }: lib.mkIf (config.mySystem.apps.zenBrowser.enable) {
# Add Zen Browser to system packages
environment.systemPackages = [
zenBrowserFlake.packages.x86_64-linux.zen-browser
];
};
}