You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
598 B
Nix
30 lines
598 B
Nix
{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;
|
|
}
|