Add dev env

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

View file

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