28 lines
797 B
Nix
28 lines
797 B
Nix
# ./generated/modules/apps/zenbrowser.nix
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
username = "henrov"; # optional, if you want user-specific stuff
|
|
in
|
|
{
|
|
# Declare a module option for enabling Zen Browser
|
|
options.mySystem.apps.zenBrowser.enable =
|
|
lib.mkEnableOption "Enable Zen Browser";
|
|
|
|
# Declare a module option for the package reference
|
|
options.mySystem.apps.zenBrowser.packageRef =
|
|
lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "zen-browser";
|
|
description = "Package reference for Zen Browser";
|
|
};
|
|
|
|
# Apply the configuration if the module is enabled
|
|
config = lib.mkIf (config.mySystem.apps.zenBrowser.enable) {
|
|
# Add the package to systemPackages
|
|
environment.systemPackages = [
|
|
pkgs.${config.mySystem.apps.zenBrowser.packageRef}
|
|
];
|
|
};
|
|
}
|