Modified specialisation generation slightly
This commit is contained in:
parent
3619713bf2
commit
d2fa73f887
|
@ -34,9 +34,11 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
customBuilder = config: {
|
customBuilder =
|
||||||
configuration = recursiveUpdate { desktop.name = config.name; } config.extraConfig;
|
config:
|
||||||
};
|
recursiveUpdate {
|
||||||
|
desktop.name = config.name;
|
||||||
|
} config.extraConfig;
|
||||||
|
|
||||||
# Environment builders
|
# Environment builders
|
||||||
environmentBuilders = {
|
environmentBuilders = {
|
||||||
|
@ -89,9 +91,9 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
specialisation = mapAttrs (
|
specialisation = mapAttrs (name: value: {
|
||||||
name: value: (environmentBuilders."${value.type}" value)
|
configuration = (environmentBuilders."${value.type}" value);
|
||||||
) cfg.environments;
|
}) cfg.environments;
|
||||||
|
|
||||||
# Create session files
|
# Create session files
|
||||||
home.extraBuilderCommands = ''
|
home.extraBuilderCommands = ''
|
||||||
|
|
Loading…
Reference in New Issue