From a25873d518d2521126bd6ae3c96ba7eb5228dfe7 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 20 Sep 2023 18:23:04 +0200 Subject: [PATCH] Add devShell to flake --- flake.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a12f520..1fe08df 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,12 @@ (super: self: { config-archive = super.callPackage ./lib/pkgs/config-archive.nix { }; }) ]; }; + + forAllSystems = function: + nixpkgs.lib.genAttrs [ + "x86_64-linux" + "aarch64-darwin" + ] (system: function nixpkgs.legacyPackages.${system}); in { @@ -30,5 +36,11 @@ ]; }; }; + + devShells = forAllSystems (pkgs: { + default = pkgs.mkShell { + buildInputs = [ pkgs.nixos-rebuild ]; + }; + }); }; -} \ No newline at end of file +}