From 0c5863bf756fa32666991db2369ec5a7f2b33a4f Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 11 Mar 2025 17:50:50 +0100 Subject: [PATCH] add test virtual machine --- vm-eintopf.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 vm-eintopf.nix diff --git a/vm-eintopf.nix b/vm-eintopf.nix new file mode 100644 index 0000000..f4933d6 --- /dev/null +++ b/vm-eintopf.nix @@ -0,0 +1,29 @@ +{ pkgs, ... }: +let + + template-karlsunruh = pkgs.stdenv.mkDerivation { + name = "karlsunruh"; + src = pkgs.fetchgit { + url = "https://git.project-insanity.org/onny/eintopf-karlsunruh.git"; + rev = "0c2a36574260da70da80b379d7475af7b29849c9"; + hash = "sha256-GPKlqpztl4INqVyz/4y/vVrkDPHA3rIxtUZB9LNZ96c="; + }; + dontBuild = true; + installPhase = '' + cp -r . $out/ + ''; + }; + +in +{ + + services.eintopf = { + enable = true; + settings = { + EINTOPF_THEMES = "eintopf,${template-karlsunruh}"; + EINTOPF_ADMIN_PASSWORD = "foobar23"; + EINTOPF_ADMIN_EMAIL = "onny@project-insanity.org"; + }; + }; + +}