fix update.sh

This commit is contained in:
Anthony Cicchetti 2023-05-27 13:42:29 -04:00
parent e50413330f
commit 4b1b404f08
3 changed files with 15 additions and 10 deletions

12
flake.lock generated
View file

@ -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": {

View file

@ -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": {

View file

@ -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