mirror of
https://github.com/matter-labs/nixsgx.git
synced 2025-07-21 15:33:56 +02:00
25 lines
526 B
Nix
25 lines
526 B
Nix
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (c) 2024 Matter Labs
|
|
{ pkgs
|
|
, hello
|
|
, isAzure ? false
|
|
, container-name ? "nixsgx-test-sgx-dcap"
|
|
, tag ? "latest"
|
|
}:
|
|
pkgs.lib.tee.sgxGramineContainer {
|
|
name = container-name;
|
|
inherit tag isAzure;
|
|
|
|
packages = [ hello ];
|
|
entrypoint = pkgs.lib.meta.getExe hello;
|
|
|
|
extraCmd = "echo \"Starting ${container-name}\"; gramine-sgx-sigstruct-view app.sig";
|
|
|
|
manifest = {
|
|
sgx = {
|
|
edmm_enable = false;
|
|
enclave_size = "32M";
|
|
max_threads = 4;
|
|
};
|
|
};
|
|
}
|