mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
remove github workflows and add breaktimer
This commit is contained in:
parent
346d04e632
commit
a1dc57a8de
8 changed files with 60 additions and 44 deletions
|
@ -24,7 +24,6 @@
|
|||
la = "ls -a";
|
||||
less = "bat";
|
||||
update = "cd /etc/nixos && nix flake update";
|
||||
garbage = "${pkgs.home-manager}/bin/home-manager expire-generations \"-0 days\" && sudo nix-collect-garbage -d";
|
||||
};
|
||||
histSize = 100000;
|
||||
histFile = "~/.local/share/zsh/history";
|
||||
|
@ -73,12 +72,21 @@
|
|||
unlink $OUT_PATH
|
||||
}
|
||||
|
||||
garbage() {
|
||||
${pkgs.home-manager}/bin/home-manager expire-generations "-0 days"
|
||||
sudo nix-collect-garbage -d
|
||||
echo Cleaning up boot entries...
|
||||
sudo /run/current-system/bin/switch-to-configuration boot
|
||||
echo Done
|
||||
}
|
||||
|
||||
sysdiff() {
|
||||
echo System package diff:
|
||||
${config.nix.package}/bin/nix store diff-closures $(command ls -d /nix/var/nix/profiles/system-* | tail -2)
|
||||
}
|
||||
|
||||
shell() {
|
||||
unset PKGS
|
||||
for var in "$@"
|
||||
do
|
||||
PKGS=$PKGS\ nixpkgs/nixos-unstable#$var
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue