dotfiles/flake.nix
Anthony Cicchetti b548a8078d doom-emacs (#6)
Co-authored-by: Anthony Cicchetti <acicchetti@jellyfish.co>
Reviewed-on: #6
2023-05-19 11:02:06 -04:00

44 lines
1,009 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv";
};
outputs = {
self,
nixpkgs,
devenv,
systems,
...
} @ inputs: let
forEachSystem = nixpkgs.lib.genAttrs (import systems);
in {
devShells =
forEachSystem
(system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
{
# https://devenv.sh/reference/options/
packages = [pkgs.hello pkgs.delta pkgs.difftastic pkgs.alejandra];
enterShell = ''
hello
'';
pre-commit.hooks = {
shellcheck.enable = true;
black.enable = true;
alejandra.enable = true;
taplo.enable = true;
};
}
];
};
});
};
}