use flake instead of shell
This commit is contained in:
parent
7d75f0d35e
commit
667b198727
3 changed files with 10 additions and 12 deletions
2
.envrc
2
.envrc
|
@ -1 +1 @@
|
|||
use nix
|
||||
use flake
|
||||
|
|
12
flake.nix
12
flake.nix
|
@ -21,8 +21,14 @@
|
|||
inherit nixpkgs system;
|
||||
};
|
||||
|
||||
devShell.${system} = import ./shell.nix {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
};
|
||||
devShells.${system} =
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [ git-crypt stylua ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
stylua
|
||||
git-crypt
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue