From 552f0439dcf5084621431f22c131b2877da361e1 Mon Sep 17 00:00:00 2001 From: NullBite Date: Mon, 18 Mar 2024 03:43:30 -0400 Subject: [PATCH] Add dev shell with nix-update --- .envrc | 1 + .gitignore | 1 + flake.nix | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 1fd04ef..88579e2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ # Ignore build outputs from performing a nix-build or `nix build` command result result-* +.direnv diff --git a/flake.nix b/flake.nix index 046a006..7e3b285 100644 --- a/flake.nix +++ b/flake.nix @@ -200,6 +200,16 @@ # for repl debugging via :lf . inherit inputs vars; + devShells = eachSystem (system: let + pkgs = import nixpkgs { inherit system; }; + in { + default = pkgs.mkShell { + buildInputs = with pkgs; [ + nix-update + ]; + }; + }); + # nix flake modules are meant to be portable so we cannot rely on # (extraS|s)pecialArgs to pass variables nixosModules = (import ./modules/nixos) moduleInputs;