mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 02:00:11 +01:00
feat: add dotfile loading via home-manager
This commit is contained in:
parent
eb737c39b2
commit
ba17b0ee0c
4 changed files with 41 additions and 8 deletions
|
|
@ -1,12 +1,25 @@
|
|||
{...}: {
|
||||
data.coder_parameter = {
|
||||
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;
|
||||
};
|
||||
git_repo = {
|
||||
name = "Git Repository";
|
||||
description = ''
|
||||
URI for a git repository which should automatically be cloned to ~/repos/<name>
|
||||
'';
|
||||
default = "";
|
||||
order = 1;
|
||||
order = 2;
|
||||
type = "string";
|
||||
mutable = true;
|
||||
};
|
||||
|
|
@ -16,7 +29,7 @@
|
|||
Which container image tag should be used.
|
||||
'';
|
||||
default = "latest";
|
||||
order = 2;
|
||||
order = 3;
|
||||
type = "string";
|
||||
mutable = true;
|
||||
};
|
||||
|
|
@ -26,7 +39,7 @@
|
|||
CPU Limit for Kubernetes Pod. Kubernetes Notation (eg. 500m)
|
||||
'';
|
||||
default = "500m";
|
||||
order = 3;
|
||||
order = 4;
|
||||
type = "string";
|
||||
mutable = true;
|
||||
};
|
||||
|
|
@ -36,7 +49,7 @@
|
|||
Memory Limit for Kubernetes Pod. Kubernetes Notation (eg. 1Gi)
|
||||
'';
|
||||
default = "1Gi";
|
||||
order = 4;
|
||||
order = 5;
|
||||
type = "string";
|
||||
mutable = true;
|
||||
};
|
||||
|
|
@ -46,7 +59,7 @@
|
|||
Size for the /home PV in GB
|
||||
'';
|
||||
default = 5;
|
||||
order = 5;
|
||||
order = 6;
|
||||
type = "number";
|
||||
mutable = true;
|
||||
validation = [
|
||||
|
|
@ -63,7 +76,7 @@
|
|||
Size for the /nix PV in GB. This might grow pretty big.
|
||||
'';
|
||||
default = 5;
|
||||
order = 6;
|
||||
order = 7;
|
||||
type = "number";
|
||||
mutable = true;
|
||||
validation = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue