From 92f78f3d93af0446e96c2a1d5500390460837610 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Wed, 1 Jan 2020 21:01:58 -0700 Subject: [PATCH] shell.nix: init minimal --- .envrc | 1 + shell.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 shell.nix diff --git a/.envrc b/.envrc index aad51ee0..e28b1755 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,2 @@ export ISO=".#nixosConfigurations.niximg.config.system.build.isoImage" +use nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 00000000..e5c4214e --- /dev/null +++ b/shell.nix @@ -0,0 +1,17 @@ +{ pkgs ? import {} }: +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + nixFlakes + ]; + + NIX_CONF_DIR = let + current = pkgs.lib.optionalString (builtins.pathExists /etc/nix/nix.conf) + (builtins.readFile /etc/nix/nix.conf); + + nixConf = pkgs.writeTextDir "opt/nix.conf" '' + ${current} + experimental-features = nix-command flakes ca-references + ''; + in + "${nixConf}/opt"; +}