feat: add dotfile loading via home-manager

This commit is contained in:
technofab 2024-04-27 19:52:51 +02:00
parent eb737c39b2
commit ba17b0ee0c
4 changed files with 41 additions and 8 deletions

View file

@ -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;
};
};
}