refactor(nixos): move nvidia config to its own module

This commit is contained in:
Mohammad Rafiq 2025-06-16 18:45:05 +08:00
parent 5f71bc8925
commit bf63f44875
No known key found for this signature in database
5 changed files with 43 additions and 33 deletions

View file

@ -15,7 +15,7 @@ mkWebApp {
};
extraConfig = {
assertions = singleton {
assertion = config.hardware.gpu == "nvidia";
assertion = config.hardware.gpu.nvidia.enable;
message = "You must run the sd-webui-forge service only with an nvidia gpu.";
};
services.sd-webui-forge = {