diff --git a/bun.lockb b/bun.lockb index 3eb8892..486913e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 1fa0480..6aa3a97 100644 --- a/package.json +++ b/package.json @@ -25,5 +25,9 @@ "typescript": "^5.0.0", "vite": "^5.0.3" }, - "type": "module" + "type": "module", + "dependencies": { + "@sveltejs/enhanced-img": "^0.3.8", + "prismjs": "^1.29.0" + } } diff --git a/src/lib/assets/confignix.png b/src/lib/assets/confignix.png new file mode 100644 index 0000000..12d79b8 Binary files /dev/null and b/src/lib/assets/confignix.png differ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1f27250..2494d3f 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,7 +1,59 @@ -
-

An all-encompassing, declarative
package ecosystem.

-

Build your *nix programs with {PKGS}'s extensive collection of 68368 packages - and configure your machines with {DISTRO} using the Nix language.

+ + + + + + + + + +
+
+

An all-encompassing, declarative
package ecosystem.

+ +

+ Declaratively define your Linux systems with + full end-to-end customizability of {PKGS}'s 67589 packages + using the Lix package manager. +

+
+ +
+

+ {DISTRO} — our linux distribution +

+
+
+ Gain certainty in your deployed system configuration by + replacing your opaque state with code. +
+ {@html Prism.highlight(demo1.replace(/#[^]*?#<\/slice>/,""), Prism.languages["javascript"], "nix")} +
+
+
+ ⇒ +
+
+
+
http://localhost:3000
+ +
+ +
+
+
+
diff --git a/src/routes/demo1/.gitignore b/src/routes/demo1/.gitignore new file mode 100644 index 0000000..c7e1460 --- /dev/null +++ b/src/routes/demo1/.gitignore @@ -0,0 +1,2 @@ +result +nixos.qcow2 diff --git a/src/routes/demo1/mediawiki.png b/src/routes/demo1/mediawiki.png new file mode 100644 index 0000000..e27cfdc Binary files /dev/null and b/src/routes/demo1/mediawiki.png differ diff --git a/src/routes/demo1/vm.nix b/src/routes/demo1/vm.nix new file mode 100644 index 0000000..98b1345 --- /dev/null +++ b/src/routes/demo1/vm.nix @@ -0,0 +1,20 @@ +with import { }; nixos +{ + services.mediawiki = { + enable = true; + httpd.virtualHost.hostName = "localhost:3000"; + httpd.virtualHost.adminAddr = "root@example.com"; + passwordFile = pkgs.writeText "password" "correcthorsebatterystaple"; + }; + + networking.firewall.allowedTCPPorts = [ 80 ];# + + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3uTwzSSMAPg84fwbNp2cq9+BdLFeA1VzDGth4zCAbz https://ckie.dev" + ]; + services.openssh = { + enable = true; + settings.PermitRootLogin = "yes"; + }; +# +} diff --git a/tailwind.config.js b/tailwind.config.js index 47d126e..8f2ca9b 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -53,6 +53,19 @@ export default { '900': '#104437', '950': '#08261f', }, + zinc: { + 50: '#fafafa', + 100: '#f4f4f5', + 200: '#e4e4e7', + 300: '#d4d4d8', + 400: '#a1a1aa', + 500: '#71717a', + 600: '#52525b', + 700: '#3f3f46', + 800: '#27272a', + 900: '#18181b', + 950: '#09090b', + }, }, screens: { sm: "640px", diff --git a/vite.config.js b/vite.config.js index 87595a1..ca9192c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,8 +1,9 @@ +import { enhancedImages } from "@sveltejs/enhanced-img"; import { sveltekit } from "@sveltejs/kit/vite"; import { defineConfig } from "vite"; export default defineConfig({ - plugins: [sveltekit()], + plugins: [sveltekit(), enhancedImages()], server: { fs: { allow: ["./tailwind.config.js"]