From 4b1b404f08063825919c0ed99305e15a90df8aaf Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Sat, 27 May 2023 13:42:29 -0400 Subject: [PATCH] fix update.sh --- flake.lock | 12 ++++++------ nix/home-manager/flake.lock | 6 +++--- nix/update.sh | 7 ++++++- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index 7c26300..8c97d22 100644 --- a/flake.lock +++ b/flake.lock @@ -8,11 +8,11 @@ "pre-commit-hooks": "pre-commit-hooks" }, "locked": { - "lastModified": 1685013540, - "narHash": "sha256-UM9tPy9fyfXs+knxwk/rCIaNfVC7ggwzbLcY8lkOr+E=", + "lastModified": 1685188238, + "narHash": "sha256-NEMWW4eLroc97G9OoD3dQctHqLB4fuwrZIL/P1tFBs8=", "owner": "cachix", "repo": "devenv", - "rev": "5ff14a8f2828a2e607a65e2b16650a8cf950515b", + "rev": "b0bc8ec6e52726cadfe5c6695b07408b69adc307", "type": "github" }, "original": { @@ -164,11 +164,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1684936879, - "narHash": "sha256-BOSq/QiX7MDs8tUnAt4+nYTJctgYkzVSNL95qlfMYeM=", + "lastModified": 1685043448, + "narHash": "sha256-U3BwyDc2OzBcZ8tD09qXibyivgOtOQFTFCVgFyJ+6MM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "99fe1b870522d6ee3e692c2b6e663d6868a3fde4", + "rev": "9886352ec9ab3945896ee8a4185e961fe29df209", "type": "github" }, "original": { diff --git a/nix/home-manager/flake.lock b/nix/home-manager/flake.lock index 65dba7c..a4d0c6a 100644 --- a/nix/home-manager/flake.lock +++ b/nix/home-manager/flake.lock @@ -82,11 +82,11 @@ ] }, "locked": { - "lastModified": 1685108129, - "narHash": "sha256-6Jv6LxrLfaueHj095oBUKBk++eW4Ya0qfHwhQVQqyoo=", + "lastModified": 1685189510, + "narHash": "sha256-Hq5WF7zIixojPgvhgcd6MBvywwycVZ9wpK/8ogOyoaA=", "owner": "nix-community", "repo": "home-manager", - "rev": "bec196cd9b5f34213c7dc90ef2a524336df70e30", + "rev": "2d963854ae2499193c0c72fd67435fee34d3e4fd", "type": "github" }, "original": { diff --git a/nix/update.sh b/nix/update.sh index c87ccc1..71909a8 100755 --- a/nix/update.sh +++ b/nix/update.sh @@ -1,7 +1,12 @@ +#!/bin/bash pushd ~/.dotfiles printf "Updating devenv\n" nix flake update pushd ./nix/home-manager printf "Updating home-manager\n" nix flake update -home-manager switch --flake '.#aarch64-darwin-acicchetti' +if [[ $(uname) == "Darwin" ]]; then + home-manager switch --flake "$PWD/home-manager#aarch64-darwin-acicchetti" +else + home-manager switch --flake '.#x86_64-linux-acicchetti' +fi