Reshuffling stuff
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
# Gebruik een relatief pad, geen flakeRoot
|
||||
# Gebruik relatieve pad binnen module
|
||||
packagesConfPath = ../../../assets/system/apps/packages.conf;
|
||||
|
||||
raw = builtins.readFile packagesConfPath;
|
||||
@@ -38,5 +38,9 @@ let
|
||||
|
||||
in
|
||||
{
|
||||
environment.systemPackages = packages ;
|
||||
options.mySystem.system.packages.enable = lib.mkEnableOption "Enable packages from packages.conf";
|
||||
|
||||
config = lib.mkIf (config.mySystem.system.packages.enable or false) {
|
||||
environment.systemPackages = packages;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user