test
This commit is contained in:
Generated
+4
-4
@@ -308,11 +308,11 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751594264,
|
"lastModified": 1751594859,
|
||||||
"narHash": "sha256-cMGYnzIJpK5I58bPkMojGwv2lyVnahVL3qkEgB643lA=",
|
"narHash": "sha256-pz2A5m+uIMtmpEm+rri7Rlw1QxMmxLhkGVEfGgzPO1A=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "111dd85fd8991b7fb67b02ac4c52cd3a2a74a2ea",
|
"rev": "41f3594f31fe199fc28f4e4ce9a4b0f2d12140e3",
|
||||||
"revCount": 62,
|
"revCount": 63,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.sakamoto.dev/kenji/nixovim.git"
|
"url": "https://git.sakamoto.dev/kenji/nixovim.git"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,24 +2,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
OS="$(uname -s)"
|
ARCH=$(uname -m)
|
||||||
ARCH="$(uname -m)"
|
HOSTNAME=$1
|
||||||
|
|
||||||
|
if [[HOSTNAME]]; then
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user