shell.nix: init minimal

This commit is contained in:
Timothy DeHerrera 2020-01-01 21:01:58 -07:00
parent 11000f56e2
commit 92f78f3d93
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
2 changed files with 18 additions and 0 deletions

1
.envrc
View file

@ -1 +1,2 @@
export ISO=".#nixosConfigurations.niximg.config.system.build.isoImage"
use nix

17
shell.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> {} }:
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";
}