aboutsummaryrefslogtreecommitdiff
path: root/script/jepsen.garage/flake.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-04-18 12:14:13 +0200
committerAlex Auvolat <alex@adnab.me>2023-10-18 12:03:11 +0200
commit7011b71fbd782e199417ce9afa44a8c220885b4a (patch)
tree4fc1acd135f3fbc415259f5fb6499afa78030934 /script/jepsen.garage/flake.nix
parenta5e8ffeb63a193e5b0e020e4c014687e57f85c23 (diff)
downloadgarage-7011b71fbd782e199417ce9afa44a8c220885b4a.tar.gz
garage-7011b71fbd782e199417ce9afa44a8c220885b4a.zip
jepsen: wip
Diffstat (limited to 'script/jepsen.garage/flake.nix')
-rw-r--r--script/jepsen.garage/flake.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/script/jepsen.garage/flake.nix b/script/jepsen.garage/flake.nix
new file mode 100644
index 00000000..76ee8ebf
--- /dev/null
+++ b/script/jepsen.garage/flake.nix
@@ -0,0 +1,22 @@
+# Example flake.nix
+{
+ inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
+ inputs.microvm.url = "github:astro/microvm.nix";
+ inputs.microvm.inputs.nixpkgs.follows = "nixpkgs";
+
+ outputs = { self, nixpkgs, microvm }: {
+ # Example nixosConfigurations entry
+ nixosConfigurations.my-microvm = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ modules = [
+ # Include the microvm module
+ microvm.nixosModules.microvm
+ # Add more modules here
+ {
+ networking.hostName = "my-microvm";
+ microvm.hypervisor = "cloud-hypervisor";
+ }
+ ];
+ };
+ };
+}