From c4f18159afcdf1031363d6ebbe54ad48d89c8a01 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Sat, 13 Apr 2024 12:01:19 -0400 Subject: [PATCH] update_me command --- flake.lock | 6 +++--- nix/home-manager/flake.lock | 12 ++++++------ zsh/funcs/updater | 11 +++++++++++ 3 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 zsh/funcs/updater diff --git a/flake.lock b/flake.lock index 0a10987..553c3b9 100644 --- a/flake.lock +++ b/flake.lock @@ -33,11 +33,11 @@ "pre-commit-hooks": "pre-commit-hooks_2" }, "locked": { - "lastModified": 1712925466, - "narHash": "sha256-MJ6VxGNu/ftbn8SErJjBz80FUNXkZfcObHg/JP7wwAc=", + "lastModified": 1713005873, + "narHash": "sha256-3DFCO/hK8h0Rs14t7uPr95gVHtKKADkjBh+JjSon8Aw=", "owner": "cachix", "repo": "devenv", - "rev": "1af93652caf48bfeef6ba7d1cf59fc66e506e5c2", + "rev": "8e882058b4602b70093d1fbff57755db09e89f11", "type": "github" }, "original": { diff --git a/nix/home-manager/flake.lock b/nix/home-manager/flake.lock index c9939eb..046f273 100644 --- a/nix/home-manager/flake.lock +++ b/nix/home-manager/flake.lock @@ -44,11 +44,11 @@ ] }, "locked": { - "lastModified": 1712759992, - "narHash": "sha256-2APpO3ZW4idlgtlb8hB04u/rmIcKA8O7pYqxF66xbNY=", + "lastModified": 1713019815, + "narHash": "sha256-jzTo97VeKMNfnKw3xU+uiU5C7wtnLudsbwl/nwPLC7s=", "owner": "nix-community", "repo": "home-manager", - "rev": "31357486b0ef6f4e161e002b6893eeb4fafc3ca9", + "rev": "8fdf329526f06886b53b94ddf433848a0d142984", "type": "github" }, "original": { @@ -187,11 +187,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1712925868, - "narHash": "sha256-KMQqDZXbjPZBZ/kmBvOTbtWKq5m3D1AnFxu9ujv/Qgw=", + "lastModified": 1713023065, + "narHash": "sha256-itHmb9Z1kxuF7vkbGThlpKiEzBO+375Y7zs0toSC0KU=", "owner": "nixOS", "repo": "nixpkgs", - "rev": "8f1a3fbaa92f1d59b09f2d24af6a607b5a280071", + "rev": "61d5de98080fbe185e83a59c7b0f672257405cec", "type": "github" }, "original": { diff --git a/zsh/funcs/updater b/zsh/funcs/updater new file mode 100644 index 0000000..9c98117 --- /dev/null +++ b/zsh/funcs/updater @@ -0,0 +1,11 @@ +function update_me { + pushd ~ + if [[ ! ( "$@" =~ -n ) ]]; then + topgrade + fi + pushd ~/.dotfiles/nix + ./update.sh $@ + popd + popd || return +} +