nixos/home/common/optional/desktop/status-bar/sb-updates.sh

7 lines
240 B
Bash
Raw Normal View History

2024-06-13 23:33:14 +01:00
# Gets number of flake inputs that are ready for update
# Checks every 60 minutes
inputs=$(cd /etc/nixos &&
nix flake update --output-lock-file <(cat flake.nix) 2> /tmp/update &&
cat /tmp/update | grep -c Update)
printf "$inputs"