ébauche de fonction pour générer un profil
parent
8ee09217cb
commit
854eed9227
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue