2016-05-12 00:42:30 +02:00
|
|
|
all: rebuild-switch
|
|
|
|
|
date
|
|
|
|
|
|
2016-05-14 20:59:13 +02:00
|
|
|
clean:
|
|
|
|
|
nix-collect-garbage -d --delete-older-than 15d
|
|
|
|
|
|
2016-05-17 20:09:04 +02:00
|
|
|
clean-aggressive:
|
2016-05-23 16:50:44 +02:00
|
|
|
nix-collect-garbage -d --delete-older-than 1d
|
2016-05-17 20:09:04 +02:00
|
|
|
|
2016-05-23 19:01:56 +02:00
|
|
|
clean-total:
|
|
|
|
|
nix-collect-garbage -d
|
|
|
|
|
|
2016-05-23 10:04:30 +02:00
|
|
|
clean-log:
|
|
|
|
|
journalctl --vacuum-size=1G
|
|
|
|
|
|
2016-06-09 16:35:37 +02:00
|
|
|
full-auto: submodules-update upgrade clean optimise
|
|
|
|
|
|
2016-05-23 08:29:56 +02:00
|
|
|
optimise:
|
|
|
|
|
nix-store --optimise
|
|
|
|
|
|
2016-06-13 16:27:53 +02:00
|
|
|
push: submodules-push
|
2016-06-28 20:55:28 +02:00
|
|
|
git push --all
|
|
|
|
|
git push --tags
|
2016-06-13 16:27:53 +02:00
|
|
|
|
2016-05-12 00:42:30 +02:00
|
|
|
rebuild-switch:
|
|
|
|
|
nixos-rebuild switch
|
|
|
|
|
|
2016-06-13 16:11:36 +02:00
|
|
|
store-repair:
|
|
|
|
|
nix-store --verify --check-contents --repair
|
|
|
|
|
|
2016-05-16 14:14:09 +02:00
|
|
|
submodules-update:
|
2016-06-09 16:17:54 +02:00
|
|
|
#git submodule update --remote
|
|
|
|
|
git submodule foreach git co master
|
|
|
|
|
git submodule foreach git ff
|
2016-05-16 14:14:09 +02:00
|
|
|
|
2016-06-13 16:13:24 +02:00
|
|
|
submodules-push:
|
2016-06-28 20:55:28 +02:00
|
|
|
git submodule foreach git push --all
|
|
|
|
|
git submodule foreach git push --tags
|
2016-06-13 16:13:24 +02:00
|
|
|
|
2016-06-28 20:52:05 +02:00
|
|
|
submodules-tag:
|
|
|
|
|
git submodule foreach git tag -f "$$(date +%F)-$$(hostname -s)"
|
|
|
|
|
|
|
|
|
|
tag: submodules-tag
|
|
|
|
|
git tag -f "$$(date +%F)-$$(hostname -s)"
|
|
|
|
|
|
2016-05-23 19:04:15 +02:00
|
|
|
upgrade:
|
2016-05-12 00:42:30 +02:00
|
|
|
nixos-rebuild switch --upgrade
|
2016-06-28 20:52:05 +02:00
|
|
|
|