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/README.md b/README.md index 16d479d..dda02f6 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ In the unlikely case that you actually read this and have any questions please d - [ ] update running system - [ ] partition/encrypt/format disks - [ ] annotate recipes with some documentation - - [ ] declare shell.nix with runtime deps + - [x] declare shell.nix with runtime deps - [ ] Document bootstrap process - [ ] Automatic backups - [ ] tracked dotfiles diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..b79404e --- /dev/null +++ b/shell.nix @@ -0,0 +1,34 @@ +with import {}; + +let + just = rustPlatform.buildRustPackage rec { + name = "just-${version}"; + version = "git"; + src = builtins.fetchGit { + url = "https://github.com/casey/just.git"; + rev = "6430d38a6a489ba4e818b6a892e8bbbbacbfe8f3"; + }; + + cargoSha256 = "0awfq9fhcin2q6mvv54xw6i6pxhdp9xa1cpx3jmpf3a6h8l6s9wp"; + + doCheck = false; + + meta = with stdenv.lib; { + description = "Just a command runner "; + homepage = https://github.com/casey/just; + license = licenses.unlicense; + maintainers = [ ]; + platforms = platforms.all; + }; + }; + +in +stdenv.mkDerivation { + name = "infra-env"; + buildInputs = [ + just + ]; + + # Set Environment Variables + RUST_BACKTRACE = 1; +}