Add dev env

This commit is contained in:
Victor Mignot 2024-08-01 21:56:09 +02:00
parent 0f0409a489
commit 0380a6f5d4
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D

View file

@ -114,10 +114,37 @@
} // machinesNodes;
formatter = builtins.listToAttrs (
map (system: {
map (
system:
let
pkgs = import nixpkgsVersions.unstable { inherit system; };
in
{
name = system;
value = nixpkgsVersions.unstable.legacyPackages.${system}.nixfmt-rfc-style;
}) flake-utils.lib.defaultSystems
value = pkgs.nixfmt-rfc-style;
}
) flake-utils.lib.defaultSystems
);
devShells = builtins.listToAttrs (
map (
system:
let
pkgs = import nixpkgsVersions.unstable { inherit system; };
in
{
name = system;
value.default = pkgs.mkShell {
name = "Nix development environment";
packages = with pkgs; [
colmena
nixfmt-rfc-style
nil
];
};
}
) flake-utils.lib.defaultSystems
);
};
}