From 93b802ae0137ea02bdc0381fa3f0296baee39100 Mon Sep 17 00:00:00 2001 From: aemogie <54412618+aemogie@users.noreply.github.com> Date: Thu, 2 May 2024 13:35:49 +0530 Subject: [PATCH] feat(direnv): init --- direnv/.envrc | 1 + direnv/flake.nix | 15 +++++++++++++++ flake.nix | 4 ++++ 3 files changed, 20 insertions(+) create mode 100644 direnv/.envrc create mode 100644 direnv/flake.nix 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); };