mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 09:43:50 -08:00
feat: add devshell and direnv
This commit is contained in:
parent
5a42cdfb6d
commit
3788778b4f
3 changed files with 17 additions and 1 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
result
|
||||
.direnv/
|
||||
|
|
16
flake.nix
16
flake.nix
|
@ -125,9 +125,23 @@
|
|||
};
|
||||
};
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, system, ... }:
|
||||
{
|
||||
formatter = pkgs.nixfmt-rfc-style;
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
buildInputs =
|
||||
with pkgs;
|
||||
[
|
||||
nixd
|
||||
nixfmt-rfc-style
|
||||
prettierd
|
||||
taplo
|
||||
]
|
||||
++ [
|
||||
inputs.viminal.packages.${system}.default
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue