-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
34 lines (30 loc) · 909 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
description = "teraflops - a terraform ops tool which is sure to be a flop";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.python312.pkgs.callPackage ./nix/teraflops.nix {};
devShells.default = with pkgs;
mkShell {
pname = "teraflops";
inputsFrom = [ self.packages.${system}.default ];
};
}
) // {
modules = {
digitalocean = import ./nix/digitalocean;
hcloud = import ./nix/hcloud;
incus = import ./nix/incus;
linode = import ./nix/linode;
lxd = import ./nix/lxd;
virtualbox = import ./nix/virtualbox;
};
};
}