Working on reshuffling

This commit is contained in:
2026-03-19 07:26:46 +00:00
parent a58b6e1751
commit e3e5c855d6
2 changed files with 12 additions and 8 deletions
+6 -4
View File
@@ -782,9 +782,11 @@ in
** =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
#+BEGIN_SRC nix :tangle generated/modules/apps/zenbrowser.nix :noweb tangle :mkdirp yes :eval never-html
# ./modules/apps/zen-browser.nix
{ lib, ... }:
{ config, pkgs, lib, ... }:
let
username = "henrov"; # optional, if you want user-specific stuff
in
{
options.mySystem = {
apps = {
@@ -799,9 +801,9 @@ This is top file of this level which contains just an import statement for all r
};
};
# This is now evaluated with config in scope
config = lib.mkIf (config.mySystem.apps.zenBrowser.enable) {
# Here you could set Home Manager packages or system packages
environment.systemPackages = [ (import <nixpkgs> {}).zen-browser ];
environment.systemPackages = [ pkgs.zen-browser ];
};
}
#+END_SRC
@@ -1,6 +1,8 @@
# ./modules/apps/zen-browser.nix
{ lib, ... }:
{ config, pkgs, lib, ... }:
let
username = "henrov"; # optional, if you want user-specific stuff
in
{
options.mySystem = {
apps = {
@@ -15,8 +17,8 @@
};
};
# This is now evaluated with config in scope
config = lib.mkIf (config.mySystem.apps.zenBrowser.enable) {
# Here you could set Home Manager packages or system packages
environment.systemPackages = [ (import <nixpkgs> {}).zen-browser ];
environment.systemPackages = [ pkgs.zen-browser ];
};
}