Modified specialisation generation slightly

This commit is contained in:
Jan-Bulthuis 2025-02-27 11:12:24 +01:00
parent 3619713bf2
commit d2fa73f887
1 changed files with 8 additions and 6 deletions

View File

@ -34,9 +34,11 @@ let
};
};
customBuilder = config: {
configuration = recursiveUpdate { desktop.name = config.name; } config.extraConfig;
};
customBuilder =
config:
recursiveUpdate {
desktop.name = config.name;
} config.extraConfig;
# Environment builders
environmentBuilders = {
@ -89,9 +91,9 @@ in
};
config = {
specialisation = mapAttrs (
name: value: (environmentBuilders."${value.type}" value)
) cfg.environments;
specialisation = mapAttrs (name: value: {
configuration = (environmentBuilders."${value.type}" value);
}) cfg.environments;
# Create session files
home.extraBuilderCommands = ''