@@ -16,6 +16,14 @@ print_success() {
|
||||
echo -e "${GREEN}✅${NC} $1"
|
||||
}
|
||||
|
||||
print_error() {
|
||||
echo -e "${RED}❌${NC} $1"
|
||||
}
|
||||
|
||||
print_warning() {
|
||||
echo -e "${YELLOW}⚡${NC} $1"
|
||||
}
|
||||
|
||||
HOSTNAME="${1:-tahani}"
|
||||
|
||||
print_info "Applying configuration for $HOSTNAME"
|
||||
|
||||
@@ -16,6 +16,14 @@ print_success() {
|
||||
echo -e "${GREEN}✅${NC} $1"
|
||||
}
|
||||
|
||||
print_error() {
|
||||
echo -e "${RED}❌${NC} $1"
|
||||
}
|
||||
|
||||
print_warning() {
|
||||
echo -e "${YELLOW}⚡${NC} $1"
|
||||
}
|
||||
|
||||
HOSTNAME="${1:-tahani}"
|
||||
|
||||
print_info "Building configuration for $HOSTNAME"
|
||||
|
||||
@@ -24,7 +24,7 @@ print_warning() {
|
||||
echo -e "${YELLOW}⚡${NC} $1"
|
||||
}
|
||||
|
||||
print_info "Available system generations:"
|
||||
print_info "Available generations:"
|
||||
if [[ "$EUID" -ne 0 ]]; then
|
||||
sudo nix-env --profile /nix/var/nix/profiles/system --list-generations
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user