From b456e07de5641d29aff187a44677d4a79dc633a1 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 20 Jan 2024 23:03:47 +0100 Subject: [PATCH] doc/host: add preparing a non-flakes host --- doc/src/host.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/src/host.md b/doc/src/host.md index d973b825..52b1ce1b 100644 --- a/doc/src/host.md +++ b/doc/src/host.md @@ -43,3 +43,14 @@ Prepare your host by including the microvm.nix `host` nixosModule: }; } ``` + +# Preparing a non-Flakes host + +If you really cannot migrate to Flakes easily, just import the `host` +module directly in your NixOS configuration: + +```nix +imports = [ (builtins.fetchGit { + url = "https://github.com/astro/microvm.nix"; +} + "/nixos-modules/host.nix") ]; +```