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"; +}