diff --git a/nixos/machines/nixquick.nix b/nixos/machines/nixquick.nix index ee6a24b7..b8b8e680 100644 --- a/nixos/machines/nixquick.nix +++ b/nixos/machines/nixquick.nix @@ -1,8 +1,9 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, inputs, ... }: { imports = [ ../full.nix ../kat.nix + ../nixified.ai.nix ]; networking.hostName = "nixquick"; diff --git a/nixos/machines/ryzen-shine.nix b/nixos/machines/ryzen-shine.nix index 85de0e6c..48a7e0cb 100644 --- a/nixos/machines/ryzen-shine.nix +++ b/nixos/machines/ryzen-shine.nix @@ -3,21 +3,13 @@ { imports = [ ../full.nix - inputs.nixified-ai.nixosModules.invokeai + ../nixified.ai.nix ]; - 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.${config.nixpkgs.system}.invokeai-nvidia ]; hardware.enableRedistributableFirmware = true; diff --git a/nixos/nixified.ai.nix b/nixos/nixified.ai.nix new file mode 100644 index 00000000..b60a3c9b --- /dev/null +++ b/nixos/nixified.ai.nix @@ -0,0 +1,16 @@ +{ inputs, config }: { + imports = [ + inputs.nixified-ai.nixosModules.invokeai + ]; + + environment.systemPackages = [ + inputs.nixified-ai.packages.${config.nixpkgs.system}.invokeai-nvidia + ]; + + services.invokeai = { + enable = true; + host = "0.0.0.0"; + nsfwChecker = false; + package = inputs.nixified-ai.packages.${config.nixpkgs.system}.invokeai-nvidia; + }; +}