2024-04-24 19:01:04 +02:00
|
|
|
{...}: {
|
|
|
|
|
data.coder_parameter = {
|
2024-04-27 19:52:51 +02:00
|
|
|
dotfiles_repo = {
|
|
|
|
|
name = "Dotfiles Repository (passed to home-manager)";
|
|
|
|
|
description = ''
|
|
|
|
|
Nix flake URI to your dotfiles repository, eg.
|
|
|
|
|
github:example/dotfiles#coder
|
|
|
|
|
|
|
|
|
|
Your flake.nix has to expose a homeManagerConfiguration.coder in this case.
|
|
|
|
|
'';
|
|
|
|
|
default = "";
|
|
|
|
|
order = 1;
|
|
|
|
|
type = "string";
|
|
|
|
|
mutable = true;
|
|
|
|
|
};
|
2024-04-24 19:01:04 +02:00
|
|
|
git_repo = {
|
|
|
|
|
name = "Git Repository";
|
|
|
|
|
description = ''
|
|
|
|
|
URI for a git repository which should automatically be cloned to ~/repos/<name>
|
|
|
|
|
'';
|
|
|
|
|
default = "";
|
2024-04-27 19:52:51 +02:00
|
|
|
order = 2;
|
2024-04-24 19:01:04 +02:00
|
|
|
type = "string";
|
|
|
|
|
mutable = true;
|
|
|
|
|
};
|
|
|
|
|
image_tag = {
|
|
|
|
|
name = "Image Tag";
|
|
|
|
|
description = ''
|
|
|
|
|
Which container image tag should be used.
|
|
|
|
|
'';
|
|
|
|
|
default = "latest";
|
2024-04-27 19:52:51 +02:00
|
|
|
order = 3;
|
2024-04-24 19:01:04 +02:00
|
|
|
type = "string";
|
|
|
|
|
mutable = true;
|
|
|
|
|
};
|
|
|
|
|
cpu = {
|
|
|
|
|
name = "CPU";
|
|
|
|
|
description = ''
|
|
|
|
|
CPU Limit for Kubernetes Pod. Kubernetes Notation (eg. 500m)
|
|
|
|
|
'';
|
|
|
|
|
default = "500m";
|
2024-04-27 19:52:51 +02:00
|
|
|
order = 4;
|
2024-04-24 19:01:04 +02:00
|
|
|
type = "string";
|
|
|
|
|
mutable = true;
|
|
|
|
|
};
|
|
|
|
|
memory = {
|
|
|
|
|
name = "Memory";
|
|
|
|
|
description = ''
|
|
|
|
|
Memory Limit for Kubernetes Pod. Kubernetes Notation (eg. 1Gi)
|
|
|
|
|
'';
|
|
|
|
|
default = "1Gi";
|
2024-04-27 19:52:51 +02:00
|
|
|
order = 5;
|
2024-04-24 19:01:04 +02:00
|
|
|
type = "string";
|
|
|
|
|
mutable = true;
|
|
|
|
|
};
|
|
|
|
|
home_disk_size = {
|
|
|
|
|
name = "Home Disk Size";
|
|
|
|
|
description = ''
|
|
|
|
|
Size for the /home PV in GB
|
|
|
|
|
'';
|
|
|
|
|
default = 5;
|
2024-04-27 19:52:51 +02:00
|
|
|
order = 6;
|
2024-04-24 19:01:04 +02:00
|
|
|
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;
|
2024-04-27 19:52:51 +02:00
|
|
|
order = 7;
|
2024-04-24 19:01:04 +02:00
|
|
|
type = "number";
|
|
|
|
|
mutable = true;
|
|
|
|
|
validation = [
|
|
|
|
|
{
|
|
|
|
|
min = 1;
|
|
|
|
|
max = 100;
|
|
|
|
|
monotonic = "increasing";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|