From 703b2673ba5b1813d3e11c8cd14891fd0475c2ed Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 25 Apr 2022 20:34:20 -0400 Subject: [PATCH] makefile quick scripts --- nixos/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/Makefile b/nixos/Makefile index 32f88e7..7ab1371 100644 --- a/nixos/Makefile +++ b/nixos/Makefile @@ -25,3 +25,11 @@ system: # Update the user environment home: home-manager switch -f ./home.nix + +upgrade: + nix-channel --update + nixos-rebuild switch -I nixos-config=./configuration.nix --upgrade + +prune: + nix-env --delete-generations 14d + nix-collect-garbage --delete-old