mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-09 12:20:04 +00:00
26 lines
564 B
Nix
26 lines
564 B
Nix
{
|
|
lib,
|
|
config,
|
|
self,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf;
|
|
inherit (self) namespace;
|
|
|
|
cfg = config.${namespace}.utils.vm;
|
|
in {
|
|
options.${namespace}.utils.vm = {
|
|
enable = self.lib.mkBool true "Whether to enable custom vm presets";
|
|
preset = self.lib.mkOpt lib.types.str "performance" "Specify the prefered vm settings preset: performance, balance or powersave";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
virtualisation.vmVariant = {
|
|
virtualisation = {
|
|
cores = 6;
|
|
memorySize = 4096;
|
|
graphics = true;
|
|
};
|
|
};
|
|
};
|
|
}
|