diff --git a/flake.nix b/flake.nix index 331505e..38f8174 100644 --- a/flake.nix +++ b/flake.nix @@ -33,6 +33,7 @@ ./modules/aipython3 ./projects/invokeai ./projects/koboldai + ./website ]; }; } diff --git a/website/default.nix b/website/default.nix new file mode 100644 index 0000000..2f5d533 --- /dev/null +++ b/website/default.nix @@ -0,0 +1,7 @@ +{ + perSystem = { pkgs, ... }: { + packages = { + website = pkgs.callPackage ./package.nix { }; + }; + }; +} diff --git a/website/package.nix b/website/package.nix new file mode 100644 index 0000000..af49b00 --- /dev/null +++ b/website/package.nix @@ -0,0 +1,30 @@ +{ lib, pandoc, stdenvNoCC }: + +lib.fix (self: stdenvNoCC.mkDerivation { + pname = "nixified-ai-website"; + version = "1.0.0"; + + src = ./src; + + nativeBuildInputs = [ + pandoc + ]; + + buildCommand = '' + unpackPhase + cd $sourceRoot + + pandoc \ + --css=./styles.css \ + -H header.html \ + -V pagetitle='Nixified AI' \ + -s index.md \ + -o index.html + + webroot=$out/share/www/nixified.ai + mkdir -p $webroot + cp -v index.html *.css *.png $webroot + ''; + + passthru.webroot = "${self}/share/www/nixified.ai"; +}) diff --git a/website/src/header.html b/website/src/header.html new file mode 100644 index 0000000..1aa0acc --- /dev/null +++ b/website/src/header.html @@ -0,0 +1 @@ + diff --git a/website/src/index.md b/website/src/index.md new file mode 100644 index 0000000..0e39fe6 --- /dev/null +++ b/website/src/index.md @@ -0,0 +1,50 @@ + +

+
+ + + +

+ +--- + +## Making AI reproducible and easy to run + +The goal of nixified.ai is to simplify and make available a large repository of +AI executable code that would otherwise be impractical to run yourself, due to +package management and complexity issues. + +- Self-contained +- Easy to run +- Support for NVIDIA and AMD GPUs +- Works with Windows Subsystem for Linux + +--- + +# KoboldAI + +- [Official website](https://github.com/KoboldAI/KoboldAI-Client) + +A browser-based front-end for AI-assisted writing with multiple local & remote AI models. + +#### Get started + +- `nix run github:nixified-ai/flake#koboldai-amd` +- `nix run github:nixified-ai/flake#koboldai-nvidia` + +![](https://raw.githubusercontent.com/nixified-ai/flake/images/koboldai.webp) + +--- + +# InvokeAI (A Stable Diffusion WebUI) + +- [Official website](https://invoke-ai.github.io/InvokeAI/) + +InvokeAI is an implementation of Stable Diffusion, the open source text-to-image and image-to-image generator. It provides a streamlined process with various new features and options to aid the image generation process. + +#### Get started + +- `nix run github:nixified-ai/flake#invokeai-amd` +- `nix run github:nixified-ai/flake#invokeai-nvidia` + +![](https://raw.githubusercontent.com/nixified-ai/flake/images/invokeai.webp) diff --git a/website/src/nixified-ai-icon.png b/website/src/nixified-ai-icon.png new file mode 100644 index 0000000..34411dc Binary files /dev/null and b/website/src/nixified-ai-icon.png differ diff --git a/website/src/styles.css b/website/src/styles.css new file mode 100644 index 0000000..7911948 --- /dev/null +++ b/website/src/styles.css @@ -0,0 +1,36 @@ +* { + color: #eeeeee; + font-family: sans-serif; +} + +body { + background: radial-gradient(circle, #4362a0 0%, #000000 100%); + margin-left: 20%; + margin-right: 20%; +} + +img { + max-width: 100%; +} + +li code { + font-family: monospace; + font-size: 1.2em; + background-color: #111111; + border-radius: 0.3em; + padding: 0.2em; +} + +li { + margin-bottom: 0.5em; +} + +hr { + border-color: #7ebae4; + color: #7ebae4; +} + +h2 { + text-align: center; + width: 100%; +}