Working on reshuffling
This commit is contained in:
+6
-4
@@ -782,9 +782,11 @@ 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
|
||||||
# ./modules/apps/zen-browser.nix
|
{ config, pkgs, lib, ... }:
|
||||||
{ lib, ... }:
|
|
||||||
|
|
||||||
|
let
|
||||||
|
username = "henrov"; # optional, if you want user-specific stuff
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options.mySystem = {
|
options.mySystem = {
|
||||||
apps = {
|
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) {
|
config = lib.mkIf (config.mySystem.apps.zenBrowser.enable) {
|
||||||
# Here you could set Home Manager packages or system packages
|
environment.systemPackages = [ pkgs.zen-browser ];
|
||||||
environment.systemPackages = [ (import <nixpkgs> {}).zen-browser ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
# ./modules/apps/zen-browser.nix
|
{ config, pkgs, lib, ... }:
|
||||||
{ lib, ... }:
|
|
||||||
|
|
||||||
|
let
|
||||||
|
username = "henrov"; # optional, if you want user-specific stuff
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options.mySystem = {
|
options.mySystem = {
|
||||||
apps = {
|
apps = {
|
||||||
@@ -15,8 +17,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# This is now evaluated with config in scope
|
||||||
config = lib.mkIf (config.mySystem.apps.zenBrowser.enable) {
|
config = lib.mkIf (config.mySystem.apps.zenBrowser.enable) {
|
||||||
# Here you could set Home Manager packages or system packages
|
environment.systemPackages = [ pkgs.zen-browser ];
|
||||||
environment.systemPackages = [ (import <nixpkgs> {}).zen-browser ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user