[NixOS] InvokeAI service

This commit is contained in:
Ivan Malison 2023-06-29 18:39:56 -06:00
parent 611e79c6bd
commit 0acefd8325
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -3,13 +3,20 @@
{ {
imports = [ imports = [
../full.nix ../full.nix
inputs.nixified-ai.nixosModules.invokeai
]; ];
services.invokeai = {
enable = true;
host = "0.0.0.0";
nsfwChecker = false;
package = inputs.nixified-ai.packages.${config.nixpkgs.system}.invokeai-nvidia;
};
networking.hostName = "ryzen-shine"; networking.hostName = "ryzen-shine";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
linuxPackages_latest.perf linuxPackages_latest.perf
inputs.nixified-ai.packages.${system}.invokeai-nvidia
]; ];
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;