feat(direnv): init

This commit is contained in:
aemogie 2024-05-02 13:35:49 +05:30
parent b42ae8ec15
commit 93b802ae01
No known key found for this signature in database
3 changed files with 20 additions and 0 deletions

1
direnv/.envrc Normal file
View file

@ -0,0 +1 @@
use flake

15
direnv/flake.nix Normal file
View file

@ -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 ]; };
};
}

View file

@ -30,6 +30,10 @@
path = ./darwin; path = ./darwin;
description = ""; description = "";
}; };
direnv = {
path = ./direnv;
description = "An empty devshell with direnv support";
};
}; };
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
}; };