Moved productive specialisation systemPackages to the correct place
This commit is contained in:
parent
1c43207211
commit
6d01a0c3d0
2 changed files with 6 additions and 3 deletions
|
|
@ -1 +1 @@
|
||||||
Made productive a specialisation
|
Moved productive specialisation systemPackages to the correct place
|
||||||
|
|
|
||||||
|
|
@ -270,8 +270,10 @@ in
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
# putting environment.systemPackages in specialisation does not work
|
# configuring this with lib.mkDefault always uses the productive definition and configuring the productive definition with an override value less than a 100 produces a non-working system
|
||||||
environment.systemPackages = if config.specialisation != {} then basePackages ++ unproductivePackages else basePackages;
|
environment.systemPackages = lib.mkIf (config.specialisation != { }) (
|
||||||
|
basePackages ++ unproductivePackages
|
||||||
|
);
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ nerd-fonts.hack ];
|
fonts.packages = with pkgs; [ nerd-fonts.hack ];
|
||||||
|
|
||||||
|
|
@ -323,6 +325,7 @@ in
|
||||||
productive = {
|
productive = {
|
||||||
inheritParentConfig = true;
|
inheritParentConfig = true;
|
||||||
configuration = {
|
configuration = {
|
||||||
|
environment.systemPackages = basePackages;
|
||||||
programs.steam.enable = lib.mkOverride 99 false;
|
programs.steam.enable = lib.mkOverride 99 false;
|
||||||
services.blocky = {
|
services.blocky = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue