From a0726ea66d1857eb2e1c9d7dfd2f10d30ac64706 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 5 Jan 2025 23:24:04 -0500 Subject: treewide: back to flake parts (#539) * treewide: back to flake parts * treewide: drop extra docs these are kind pointless --- flake/dev-shell.nix | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 flake/dev-shell.nix (limited to 'flake/dev-shell.nix') diff --git a/flake/dev-shell.nix b/flake/dev-shell.nix new file mode 100644 index 0000000..46e6ed0 --- /dev/null +++ b/flake/dev-shell.nix @@ -0,0 +1,42 @@ +{ + perSystem = + { + lib, + pkgs, + inputs', + self', + ... + }: + + { + devShells.default = pkgs.mkShellNoCC { + packages = + [ + # We want to make sure we have the same + # Nix behavior across machines + pkgs.nix + + # For CI + pkgs.actionlint + + # Nix tools + pkgs.nil + pkgs.statix + self'.formatter + + pkgs.just + ] + ++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [ + # See above comment about Nix + inputs'.nix-darwin.packages.darwin-rebuild + ] + ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [ + + # Ditto + pkgs.nixos-rebuild + + inputs'.agenix.packages.agenix + ]; + }; + }; +} -- cgit v1.2.3