Test devshellModules
This commit is contained in:
parent
7c99c7843d
commit
aa428101e8
|
@ -19,27 +19,13 @@
|
|||
};
|
||||
in
|
||||
{
|
||||
# Internal utility package with shell function and env vars helper.
|
||||
# These get source'd in devshell.bash.extra when starting tritonshell
|
||||
packages = {
|
||||
triton-utils = import ./pkgs/triton-utils.nix { inherit pkgs; };
|
||||
triton-docker-env =
|
||||
let
|
||||
# CUSTOMIZE:
|
||||
# variables used to set triton env vars in tritonshell
|
||||
# adjust to suit your Triton Data Center setup
|
||||
# take a look at ./pkgs/triton-docker-env-shell.nix to see how these get used
|
||||
cnsBaseDomain = "greenbaum.zone";
|
||||
dataCenters = [ "cgn-1" "lev-1" ];
|
||||
mantaDomain = "eu-central.manta.greenbaum.cloud";
|
||||
tritonApiDomain = "api.greenbaum.cloud";
|
||||
in
|
||||
import ./pkgs/triton-docker-env.nix {
|
||||
inherit pkgs cnsBaseDomain dataCenters mantaDomain tritonApiDomain;
|
||||
};
|
||||
devshellModules.tritonshell = { config, lib, ... }: {
|
||||
options.environment = {
|
||||
enable = lib.mkEnableOption "environment";
|
||||
# TODO: add real config here
|
||||
};
|
||||
|
||||
devShells.default =
|
||||
config =
|
||||
# TODO: set some devshell config here, like add a new command
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
|
@ -59,7 +45,30 @@
|
|||
#hello
|
||||
];
|
||||
|
||||
in
|
||||
import ./tritonshell.nix { inherit extraDevshellPkgs devshell pkgs self system; };
|
||||
in
|
||||
lib.optionalAttrs config.environment.enable {
|
||||
devShells.default =
|
||||
(import ./tritonshell.nix { inherit extraDevshellPkgs devshell pkgs self system; });
|
||||
};
|
||||
};
|
||||
# Internal utility package with shell function and env vars helper.
|
||||
# These get source'd in devshell.bash.extra when starting tritonshell
|
||||
packages = {
|
||||
triton-utils = import ./pkgs/triton-utils.nix { inherit pkgs; };
|
||||
triton-docker-env =
|
||||
let
|
||||
# CUSTOMIZE:
|
||||
# variables used to set triton env vars in tritonshell
|
||||
# adjust to suit your Triton Data Center setup
|
||||
# take a look at ./pkgs/triton-docker-env-shell.nix to see how these get used
|
||||
cnsBaseDomain = "greenbaum.zone";
|
||||
dataCenters = [ "cgn-1" "lev-1" ];
|
||||
mantaDomain = "eu-central.manta.greenbaum.cloud";
|
||||
tritonApiDomain = "api.greenbaum.cloud";
|
||||
in
|
||||
import ./pkgs/triton-docker-env.nix {
|
||||
inherit pkgs cnsBaseDomain dataCenters mantaDomain tritonApiDomain;
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue