From 4c4a31544029fd0600bf6cc7adedd4813f5e4bb8 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 1 Apr 2024 01:07:34 +0200 Subject: [PATCH] [zsh] improved update alias --- nix/home/zsh/zsh.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nix/home/zsh/zsh.nix b/nix/home/zsh/zsh.nix index a48f7e7..772fa9c 100644 --- a/nix/home/zsh/zsh.nix +++ b/nix/home/zsh/zsh.nix @@ -43,10 +43,11 @@ k9s = "ssh k9s.siempie.internal -t /home/simon/.local/bin/k9s"; # nixos-rebuild - system-rebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles#`hostname -s`"; - system-update = "sudo nixos-rebuild switch --upgrade --flake ~/.dotfiles#`hostname -s` && sudo fwupdmgr upgrade"; - system-clean = "sudo nix-store --gc"; - system-purge = "sudo nix-collect-garbage -d"; + system-rebuild = "sudo nixos-rebuild switch --flake ~/.dotfiles#`hostname -s`"; + system-update = "sudo nix flake update nixpkgs -I ~/.dotfiles && sudo nixos-rebuild switch --upgrade --flake ~/.dotfiles#`hostname -s` && sudo fwupdmgr upgrade"; + system-clean = "sudo nix-store --gc"; + system-purge = "sudo nix-collect-garbage -d"; + system-full-clean = "sudo nix-store --gc && sudo nix-collect-garbage -d"; # sshfs sj-mount-media = "sshfs nas.siempie.local:/tank/media /home/simon/remotedir/media";