Files
taiga-front/flake.nix

46 lines
1.2 KiB
Nix

{
description = "Basic flake and files - change me";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs =
{ nixpkgs, ... }@inputs:
let
supportedSystems = [ "x86_64-linux" ];
pkgsFor =
system:
nixpkgs.legacyPackages.${system}.extend (
nixpkgs.lib.composeManyExtensions ([ ])
# nixpkgs.lib.composeManyExtensions ([ ] ++ builtins.attrValues self.overlays)
);
eachSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f (pkgsFor system));
treefmtEval = eachSystem (pkgs: inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
in
{
# nix fmt formatter
formatter = eachSystem (pkgs: treefmtEval.${pkgs.system}.config.build.wrapper);
# default devshell
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
just
nodejs
nodePackages.pnpm
];
# Will be executed before entering the shell
# or running a command
shellHook = ''
echo "Dev env ready"
'';
};
});
};
}