From 0acefd83254f68030228add0552604360e914a96 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 29 Jun 2023 18:39:56 -0600 Subject: [PATCH] [NixOS] InvokeAI service --- nixos/machines/ryzen-shine.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/machines/ryzen-shine.nix b/nixos/machines/ryzen-shine.nix index 29899128..d6d4ce00 100644 --- a/nixos/machines/ryzen-shine.nix +++ b/nixos/machines/ryzen-shine.nix @@ -3,13 +3,20 @@ { imports = [ ../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"; environment.systemPackages = with pkgs; [ linuxPackages_latest.perf - inputs.nixified-ai.packages.${system}.invokeai-nvidia ]; hardware.enableRedistributableFirmware = true;