Skip to content

Instantly share code, notes, and snippets.

@Taeradan
Last active May 25, 2017 00:11
Show Gist options
  • Save Taeradan/bf21c06b0e6918f75f857f4ea2b09cf6 to your computer and use it in GitHub Desktop.
Save Taeradan/bf21c06b0e6918f75f857f4ea2b09cf6 to your computer and use it in GitHub Desktop.
recursiveUpdate error
{lib}:
let
profiles = {
isDesktopEnvironment = {
awesome = true;
internetSuite = true;
multimediaSuite = true;
officeSuite = true;
pulseaudio = true;
securitySuite = true;
};
isWorkstation = {
graphical = true;
docker = true;
};
isServer = {
};
};
in
rec {
applyProfilesToDirectory = customProfiles: directory:
lib.mapAttrs (applyProfilesToMachine customProfiles) directory;
applyProfilesToMachine = customProfiles: machineName: machineOptions:
lib.recursiveUpdate {} machineOptions;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment