Working on reshuffling
This commit is contained in:
+6
-4
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user