+custom services

This commit is contained in:
m3tam3re
2025-03-13 13:42:25 +01:00
parent aa1e617e3a
commit c4bff08f72
5 changed files with 44 additions and 133 deletions

View File

@ -82,13 +82,33 @@
};
};
programs.bash = {
loginShellInit = ''
# Only show the message for interactive login shells
if [[ -t 0 && -t 1 && "$BASH_EXECUTION_STRING" == "" ]]; then
gum style \
--foreground 212 \
--border double \
--margin "1 2" \
--padding "1 2" \
--align center \
--width 70 \
"🌟 Welcome to Your Self-Host Playbook Server! 🌟" \
"" \
"🔧 To manage your server: Run 'shp' (requires sudo)" \
"" \
"💬 Join our community: https://www.m3tam3re.com"
fi
'';
};
environment.etc = {
# Main justfile
"self-host-playbook/justfile".source = ../justfiles/main.just;
# Tier justfiles
"self-host-playbook/tiers/core.just".source = ../justfiles/tiers/core.just;
"self-host-playbook/tiers/starter.just".source = ../justfiles/tiers/starter.just;
"self-host-playbook/tiers".source = ../justfiles/tiers;
"self-host-playbook/scripts".source = ../justfiles/scripts;
};
# System state version (do not change)
system.stateVersion = "24.11";