From 3aff7ec4e612535e81e8625ce8eba59895df76e3 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Sat, 11 Apr 2026 00:00:31 +0200 Subject: Add experimental Nix flake and direnv config --- flake.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..5d59de4 --- /dev/null +++ b/flake.nix @@ -0,0 +1,42 @@ +{ + description = "Auto-install OpenBSD on QEMU"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + flake-parts.url = "github:hercules-ci/flake-parts"; + }; + + outputs = + inputs@{ + self, + nixpkgs, + flake-parts, + ... + }: + flake-parts.lib.mkFlake { inherit inputs; } { + systems = [ + "x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin" + ]; + + perSystem = + { pkgs, system, ... }: + { + devShells.default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + curl + python3 + qemu + rsync + signify + socat + ]; + }; + + # nix fmt + formatter = pkgs.nixfmt-tree; + }; + }; +} -- cgit v1.3.1