fix(system): enable uwsm and fix session detection to allow VM login
- Enable programs.uwsm for session management. - Improve SDDM theme session detection logic to be case-insensitive and more robust. - Perform a global cleanup of 'Nnomarchy' and 'org.nnomarchy' typos across all scripts and configurations.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# nnomarchy-sync: Automate backing up and restoring Nnomarchy declarative configurations and dynamic state.
|
||||
# nomarchy-sync: Automate backing up and restoring Nomarchy declarative configurations and dynamic state.
|
||||
|
||||
set -e
|
||||
|
||||
if [[ -z $1 ]]; then
|
||||
echo "Usage: nnomarchy-sync <push|pull> [repo-url]"
|
||||
echo "Usage: nomarchy-sync <push|pull> [repo-url]"
|
||||
echo " push: Backup current state to the configured repository."
|
||||
echo " pull: Restore state from the configured repository and apply updates."
|
||||
exit 1
|
||||
@@ -18,7 +18,7 @@ STATE_DIR="$HOME/.config/home-manager"
|
||||
CONFIG_DIR="/etc/nixos"
|
||||
|
||||
# Identify the target repo directory (we use a local dot-folder to stage things)
|
||||
SYNC_DIR="$HOME/.local/share/nnomarchy-sync"
|
||||
SYNC_DIR="$HOME/.local/share/nomarchy-sync"
|
||||
|
||||
mkdir -p "$SYNC_DIR"
|
||||
cd "$SYNC_DIR"
|
||||
@@ -26,14 +26,14 @@ cd "$SYNC_DIR"
|
||||
if [ ! -d ".git" ]; then
|
||||
if [[ -z $REPO_URL ]]; then
|
||||
echo "Error: No Git repository configured. Please provide a repo-url for the first run:"
|
||||
echo "Example: nnomarchy-sync push git@github.com:username/nnomarchy-backup.git"
|
||||
echo "Example: nomarchy-sync push git@github.com:username/nomarchy-backup.git"
|
||||
exit 1
|
||||
fi
|
||||
git init
|
||||
git remote add origin "$REPO_URL"
|
||||
# Basic configuration for automated commits
|
||||
git config user.name "Nnomarchy Sync"
|
||||
git config user.email "sync@nnomarchy.local"
|
||||
git config user.name "Nomarchy Sync"
|
||||
git config user.email "sync@nomarchy.local"
|
||||
fi
|
||||
|
||||
if [[ "$COMMAND" == "push" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user