mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 10:10:05 +01:00
79 lines
1.7 KiB
Nix
79 lines
1.7 KiB
Nix
|
|
{...}: {
|
||
|
|
data.coder_parameter = {
|
||
|
|
git_repo = {
|
||
|
|
name = "Git Repository";
|
||
|
|
description = ''
|
||
|
|
URI for a git repository which should automatically be cloned to ~/repos/<name>
|
||
|
|
'';
|
||
|
|
default = "";
|
||
|
|
order = 1;
|
||
|
|
type = "string";
|
||
|
|
mutable = true;
|
||
|
|
};
|
||
|
|
image_tag = {
|
||
|
|
name = "Image Tag";
|
||
|
|
description = ''
|
||
|
|
Which container image tag should be used.
|
||
|
|
'';
|
||
|
|
default = "latest";
|
||
|
|
order = 2;
|
||
|
|
type = "string";
|
||
|
|
mutable = true;
|
||
|
|
};
|
||
|
|
cpu = {
|
||
|
|
name = "CPU";
|
||
|
|
description = ''
|
||
|
|
CPU Limit for Kubernetes Pod. Kubernetes Notation (eg. 500m)
|
||
|
|
'';
|
||
|
|
default = "500m";
|
||
|
|
order = 3;
|
||
|
|
type = "string";
|
||
|
|
mutable = true;
|
||
|
|
};
|
||
|
|
memory = {
|
||
|
|
name = "Memory";
|
||
|
|
description = ''
|
||
|
|
Memory Limit for Kubernetes Pod. Kubernetes Notation (eg. 1Gi)
|
||
|
|
'';
|
||
|
|
default = "1Gi";
|
||
|
|
order = 4;
|
||
|
|
type = "string";
|
||
|
|
mutable = true;
|
||
|
|
};
|
||
|
|
home_disk_size = {
|
||
|
|
name = "Home Disk Size";
|
||
|
|
description = ''
|
||
|
|
Size for the /home PV in GB
|
||
|
|
'';
|
||
|
|
default = 5;
|
||
|
|
order = 5;
|
||
|
|
type = "number";
|
||
|
|
mutable = true;
|
||
|
|
validation = [
|
||
|
|
{
|
||
|
|
min = 1;
|
||
|
|
max = 100;
|
||
|
|
monotonic = "increasing";
|
||
|
|
}
|
||
|
|
];
|
||
|
|
};
|
||
|
|
nix_store_disk_size = {
|
||
|
|
name = "Nix Store Disk Size";
|
||
|
|
description = ''
|
||
|
|
Size for the /nix PV in GB. This might grow pretty big.
|
||
|
|
'';
|
||
|
|
default = 5;
|
||
|
|
order = 6;
|
||
|
|
type = "number";
|
||
|
|
mutable = true;
|
||
|
|
validation = [
|
||
|
|
{
|
||
|
|
min = 1;
|
||
|
|
max = 100;
|
||
|
|
monotonic = "increasing";
|
||
|
|
}
|
||
|
|
];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|