added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
42
nyx/flake/shell.nix
Normal file
42
nyx/flake/shell.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
perSystem = {
|
||||
inputs',
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
devShells.default = pkgs.mkShell {
|
||||
name = "nyx";
|
||||
meta.description = "The default development shell for my NixOS configuration";
|
||||
|
||||
shellHook = ''
|
||||
${config.pre-commit.installationScript}
|
||||
'';
|
||||
|
||||
# tell direnv to shut up
|
||||
DIRENV_LOG_FORMAT = "";
|
||||
|
||||
# packages available in the dev shell
|
||||
packages = with pkgs; [
|
||||
inputs'.agenix.packages.default # provide agenix CLI within flake shell
|
||||
inputs'.deploy-rs.packages.default # provide deploy-rs CLI within flake shell
|
||||
config.treefmt.build.wrapper # treewide formatter
|
||||
nil # nix ls
|
||||
alejandra # nix formatter
|
||||
git # flakes require git, and so do I
|
||||
glow # markdown viewer
|
||||
statix # lints and suggestions
|
||||
deadnix # clean up unused nix code
|
||||
nodejs # for ags and eslint_d
|
||||
(pkgs.writeShellApplication {
|
||||
name = "update";
|
||||
text = ''
|
||||
nix flake update && git commit flake.lock -m "flake: bump inputs"
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
||||
inputsFrom = [config.treefmt.build.devShell];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue