From 8812a3b93c6622560151894a1133591028d5c2b0 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 26 Feb 2023 21:28:44 +0100 Subject: [PATCH] add dev shell --- .envrc | 1 + flake.nix | 3 +++ shell.nix | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/flake.nix b/flake.nix index 71c0106..3464b00 100644 --- a/flake.nix +++ b/flake.nix @@ -66,5 +66,8 @@ modules = [ ./users/pbsds/home ]; }; }); + devShells = forAllSystems (system: { + default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { }; + }); }; } diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..c2b3a6b --- /dev/null +++ b/shell.nix @@ -0,0 +1,7 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + packages = with pkgs; [ + #buildInputs = with pkgs; [ + nixos-rebuild + ]; +}