2022-02-01 01:30:23 +00:00
|
|
|
{
|
2022-10-12 12:14:05 +00:00
|
|
|
description = "Example devshell using the tritonshell nix module";
|
2022-02-01 01:30:23 +00:00
|
|
|
|
2022-10-12 12:27:33 +00:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
|
|
|
devshell.url = "github:numtide/devshell";
|
|
|
|
devshell.inputs.flake-utils.follows = "flake-utils";
|
|
|
|
devshell.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
|
|
tritonshell-module.url = "git+https://git.greenbaum.cloud/dev/tritonshell?ref=main";
|
|
|
|
tritonshell-module.inputs.devshell.follows = "devshell";
|
|
|
|
tritonshell-module.inputs.flake-utils.follows = "flake-utils";
|
|
|
|
tritonshell-module.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-10-11 08:44:32 +00:00
|
|
|
|
2022-10-12 12:14:05 +00:00
|
|
|
outputs = { self, flake-utils, devshell, tritonshell-module, nixpkgs }:
|
|
|
|
flake-utils.lib.simpleFlake {
|
|
|
|
inherit self nixpkgs;
|
|
|
|
name = "infra-project";
|
|
|
|
preOverlays = [ devshell.overlay ];
|
|
|
|
shell = { pkgs }:
|
|
|
|
pkgs.devshell.mkShell {
|
2022-10-12 13:14:26 +00:00
|
|
|
imports = [ tritonshell-module.devshellModules.x86_64-linux.tritonshell ];
|
2022-10-12 12:14:05 +00:00
|
|
|
# Now the tritonshell environment nix module options are available
|
|
|
|
environment = {
|
|
|
|
enable = true;
|
2022-10-12 12:36:52 +00:00
|
|
|
# CUSTOMIZE if desired, default options are:
|
2022-10-12 12:14:05 +00:00
|
|
|
#cnsBaseDomain = "greenbaum.zone";
|
|
|
|
#dataCenters = [ "cgn-1" "lev-1" ];
|
|
|
|
#mantaDomain = "eu-central.manta.greenbaum.cloud";
|
|
|
|
#tritonApiDomain = "api.greenbaum.cloud";
|
2022-06-09 12:43:04 +00:00
|
|
|
};
|
2022-02-01 01:30:23 +00:00
|
|
|
|
2022-10-12 12:14:05 +00:00
|
|
|
# Add additional packages you'd like to be available in your devshell
|
|
|
|
# PATH here
|
|
|
|
devshell.packages = with pkgs; [
|
|
|
|
#nodejs
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2022-02-01 01:30:23 +00:00
|
|
|
}
|