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