diff --git a/lib.nix b/lib.nix new file mode 100644 index 0000000..1f3a871 --- /dev/null +++ b/lib.nix @@ -0,0 +1,29 @@ +{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: + machineOptions; + #lib.recursiveUpdate {} machineOptions; +}