diff options
| author | Stefan Kreutz <mail@skreutz.com> | 2026-04-11 00:00:31 +0200 |
|---|---|---|
| committer | Stefan Kreutz <mail@skreutz.com> | 2026-04-11 00:00:31 +0200 |
| commit | 3aff7ec4e612535e81e8625ce8eba59895df76e3 (patch) | |
| tree | 3f87404c18eaafd62dd48d0cadab9bce22b71ad0 /flake.nix | |
| parent | d230cf732d0b17b0ac7d3a8b645072539345a9da (diff) | |
| download | autoinstall-openbsd-on-qemu-3aff7ec4e612535e81e8625ce8eba59895df76e3.tar.gz | |
Add experimental Nix flake and direnv config
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 42 |
1 files changed, 42 insertions, 0 deletions
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; + }; + }; +} |