From f757fdee59dc9b3550163aa9dc5337871837d98c Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Fri, 12 Apr 2024 12:15:28 +0200 Subject: [PATCH] improve update command --- common/zsh.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/zsh.nix b/common/zsh.nix index fbba399..f68c915 100644 --- a/common/zsh.nix +++ b/common/zsh.nix @@ -15,8 +15,7 @@ ll = "lsd -l"; lt = "lsd -l --tree"; # TODO find if i can make these use the 'current' flake - utest = "sudo nixos-rebuild test --flake $HOME/nixos#default"; - update = "sudo nixos-rebuild switch --flake $HOME/nixos#default"; + update = "nix flake update --commit-lock-file $HOME/nixos#default && sudo nixos-rebuild switch --flake $HOME/nixos#default"; }; history = { path = "${config.xdg.dataHome}/zsh/history";