Working on reshuffling

This commit is contained in:
2026-03-19 07:33:47 +00:00
parent cb931d15f8
commit 57382163ce
2 changed files with 10 additions and 36 deletions
+5 -18
View File
@@ -782,31 +782,18 @@ in
** =generated/modules/apps/zenbrowser.nix= ** =generated/modules/apps/zenbrowser.nix=
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
#+BEGIN_SRC nix :tangle generated/modules/apps/zenbrowser.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/modules/apps/zenbrowser.nix :noweb tangle :mkdirp yes :eval never-html
# ./generated/modules/apps/zenbrowser.nix { pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
let let
username = "henrov"; # optional, if you want user-specific stuff packageRef = "zen-browser";
in in
{ {
# Declare a module option for enabling Zen Browser
options.mySystem.apps.zenBrowser.enable = options.mySystem.apps.zenBrowser.enable =
lib.mkEnableOption "Enable Zen Browser"; lib.mkEnableOption "Enable Zen Browser";
# Declare a module option for the package reference # Top-level config without touching `config` inside
options.mySystem.apps.zenBrowser.packageRef = config = lib.mkIf (lib.getOption "mySystem.apps.zenBrowser.enable") {
lib.mkOption { environment.systemPackages = [ pkgs.${packageRef} ];
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}
];
}; };
} }
#+END_SRC #+END_SRC
+5 -18
View File
@@ -1,27 +1,14 @@
# ./generated/modules/apps/zenbrowser.nix { pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
let let
username = "henrov"; # optional, if you want user-specific stuff packageRef = "zen-browser";
in in
{ {
# Declare a module option for enabling Zen Browser
options.mySystem.apps.zenBrowser.enable = options.mySystem.apps.zenBrowser.enable =
lib.mkEnableOption "Enable Zen Browser"; lib.mkEnableOption "Enable Zen Browser";
# Declare a module option for the package reference # Top-level config without touching `config` inside
options.mySystem.apps.zenBrowser.packageRef = config = lib.mkIf (lib.getOption "mySystem.apps.zenBrowser.enable") {
lib.mkOption { environment.systemPackages = [ pkgs.${packageRef} ];
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}
];
}; };
} }