From 1dc5dff82f609bd3074d99b5308c0a2df0d1b077 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 31 Dec 2020 14:26:32 +0100 Subject: Set up template --- shell.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 shell.nix (limited to 'shell.nix') diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..2820eb1a --- /dev/null +++ b/shell.nix @@ -0,0 +1,16 @@ +{ pkgs ? import {} }: +let + nixWithFlakes = pkgs.symlinkJoin { + name = "nix-with-flakes"; + paths = [ pkgs.nixFlakes ]; + buildInputs = [ pkgs.makeWrapper ]; + postBuild = '' + wrapProgram $out/bin/nix --add-flags '--option experimental-features "nix-command flakes ca-references"' + ''; + }; +in pkgs.mkShell { + name = "nixos"; + nativeBuildInputs = with pkgs; [ + nixWithFlakes + ]; +} -- cgit v1.2.3