diff --git a/direnv/.envrc b/direnv/.envrc new file mode 100644 index 0000000..8392d15 --- /dev/null +++ b/direnv/.envrc @@ -0,0 +1 @@ +use flake \ No newline at end of file diff --git a/direnv/flake.nix b/direnv/flake.nix new file mode 100644 index 0000000..91cc9b6 --- /dev/null +++ b/direnv/flake.nix @@ -0,0 +1,15 @@ +{ + description = "An empty devshell with direnv support"; + + inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixpkgs-unstable"; + + outputs = + { nixpkgs, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in + { + devShells.${system}.default = pkgs.mkShell { packages = [ pkgs.hello ]; }; + }; +} diff --git a/flake.nix b/flake.nix index 574347b..647bf2c 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,10 @@ path = ./darwin; description = ""; }; + direnv = { + path = ./direnv; + description = "An empty devshell with direnv support"; + }; }; formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); };