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;