Add dev env
This commit is contained in:
parent
0f0409a489
commit
a09c389ddf
33
flake.nix
33
flake.nix
|
@ -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 = pkgs.mkShell {
|
||||
name = "Nix development environment";
|
||||
|
||||
packages = with pkgs; [
|
||||
colmena
|
||||
nixfmt-rfc-style
|
||||
nil
|
||||
];
|
||||
};
|
||||
}
|
||||
) flake-utils.lib.defaultSystems
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue