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
|
|
@ -39,5 +39,20 @@
|
|||
run_on_start = true;
|
||||
start_blocks_login = true;
|
||||
};
|
||||
coder_script."home-manager" = {
|
||||
agent_id = "\${coder_agent.coder.id}";
|
||||
display_name = "Home Manager";
|
||||
icon = "/emojis/1f3e0.png";
|
||||
script = ''
|
||||
if [ ! -z "$DOTFILES_REPO" ] then
|
||||
echo "Dotfiles present, reloading home-manager profile"
|
||||
reload-dotfiles
|
||||
else
|
||||
echo "No dotfiles repo specified, skipping..."
|
||||
fi
|
||||
'';
|
||||
run_on_start = true;
|
||||
start_blocks_login = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue