From 6550d6e8716a83928344e99442dd27c3438ecb30 Mon Sep 17 00:00:00 2001 From: lsoriano-mcm Date: Sat, 5 Jul 2025 09:22:12 -0500 Subject: [PATCH] test --- flake.lock | 8 ++++---- run.sh | 24 ++++-------------------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/flake.lock b/flake.lock index 933ff27..8d8ee7f 100644 --- a/flake.lock +++ b/flake.lock @@ -308,11 +308,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1751594264, - "narHash": "sha256-cMGYnzIJpK5I58bPkMojGwv2lyVnahVL3qkEgB643lA=", + "lastModified": 1751594859, + "narHash": "sha256-pz2A5m+uIMtmpEm+rri7Rlw1QxMmxLhkGVEfGgzPO1A=", "ref": "refs/heads/master", - "rev": "111dd85fd8991b7fb67b02ac4c52cd3a2a74a2ea", - "revCount": 62, + "rev": "41f3594f31fe199fc28f4e4ce9a4b0f2d12140e3", + "revCount": 63, "type": "git", "url": "https://git.sakamoto.dev/kenji/nixovim.git" }, diff --git a/run.sh b/run.sh index 1c26032..b3ebebf 100755 --- a/run.sh +++ b/run.sh @@ -2,24 +2,8 @@ set -e -OS="$(uname -s)" -ARCH="$(uname -m)" +ARCH=$(uname -m) +HOSTNAME=$1 - -if [[ "$OS" == "Darwin" ]]; then - echo "macOS (Darwin) detected. Running nix-darwin switch..." - sudo nix run nix-darwin --extra-experimental-features "nix-command flakes" -- switch --flake .\#macos - echo "macOS configuration updated successfully." - -elif [[ "$OS" == "Linux" && "$ARCH" == "x86_64" ]]; then - echo "Linux (x86_64) detected. Running nixos-rebuild..." - sudo nixos-rebuild switch --flake .\#desktop - echo "NixOS configuration updated successfully." - -else - echo "Unsupported operating system or architecture: $OS ($ARCH)" - echo "This script only supports Darwin (macOS) and Linux (x86_64)." - exit 1 -fi - -exit 0 +if [[HOSTNAME]]; then +