1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

feat: lix, morlana, spdx-gen

This commit is contained in:
Ryan Cao 2024-09-20 12:59:46 +08:00
parent b9832c59cf
commit 9cd5e745cd
Signed by: ryanccn
GPG key ID: 48C96B2057D71CB1
6 changed files with 206 additions and 71 deletions

View file

@ -1,8 +1,12 @@
switch *args:
darwin-rebuild switch --flake . --verbose --show-trace {{args}}
morlana switch {{args}}
delete-old:
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old && home-manager expire-generations now
wipe-history:
sudo -H nix profile wipe-history --profile "/nix/var/nix/profiles/default"
sudo -H nix profile wipe-history --profile "/nix/var/nix/profiles/system"
sudo -H nix profile wipe-history --profile "/nix/var/nix/profiles/per-user/root/profile"
nix profile wipe-history --profile "${XDG_STATE_HOME-$HOME/.local/state}/nix/profiles/profile"
nix profile wipe-history --profile "${XDG_STATE_HOME-$HOME/.local/state}/nix/profiles/home-manager"
update:
nix flake update