use flake instead of shell

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-31 15:49:37 +03:00
parent 7d75f0d35e
commit 667b198727
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
3 changed files with 10 additions and 12 deletions

2
.envrc
View file

@ -1 +1 @@
use nix use flake

View file

@ -21,8 +21,14 @@
inherit nixpkgs system; inherit nixpkgs system;
}; };
devShell.${system} = import ./shell.nix { devShells.${system} =
pkgs = import nixpkgs { inherit system; }; let
}; pkgs = import nixpkgs { inherit system; };
in
{
default = pkgs.mkShell {
packages = with pkgs; [ git-crypt stylua ];
};
};
}; };
} }

View file

@ -1,8 +0,0 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
stylua
git-crypt
];
}