refactor(nixos): move nvidia config to its own module
This commit is contained in:
parent
5f71bc8925
commit
bf63f44875
5 changed files with 43 additions and 33 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue