set unstable

default:
  @just --list

update:
  git pull
  sudo nixos-rebuild switch --flake .
  home-manager switch --flake .
  
clean:
  sudo nix-collect-garbage -d
  nix-collect-garbage -d

fmt:
  nix fmt

alias s := switch

switch:
  sudo nixos-rebuild switch --flake .
  home-manager switch --flake .

alias sw := switch-system

switch-system:
  sudo nixos-rebuild switch --flake .

alias sh := switch-home-manager

switch-home-manager:
  home-manager switch --flake .

alias gc := collect-garbage

collect-garbage:
  sudo nix-collect-garbage -d
  nix-collect-garbage -d
  
