Once more try to include nvd in system update
This commit is contained in:
parent
3919c7abb6
commit
b6f52946e5
|
@ -3,14 +3,14 @@
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-update-system";
|
name = "custom-update-system";
|
||||||
|
|
||||||
# Including this doesn't work
|
|
||||||
# oldVersion=$(home-manager generations | head -n 2 | tail -n 1 | cut -d' ' -f 7)
|
|
||||||
# newVersion=$(home-manager generations | head -n 1 | cut -d' ' -f 7)
|
|
||||||
# nvd diff "$oldVersion" "$newVersion"
|
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
nix-channel --update
|
nix-channel --update
|
||||||
home-manager switch
|
home-manager switch
|
||||||
|
|
||||||
|
oldVersion=$(home-manager generations | head -n 2 | tail -n 1 | cut -d' ' -f 7)
|
||||||
|
newVersion=$(home-manager generations | head -n 1 | cut -d' ' -f 7)
|
||||||
|
nvd diff "$oldVersion" "$newVersion"
|
||||||
|
|
||||||
home-manager expire-generations '-30 days'
|
home-manager expire-generations '-30 days'
|
||||||
nix-env --delete-generations +5
|
nix-env --delete-generations +5
|
||||||
nix store gc
|
nix store gc
|
||||||
|
|
Loading…
Reference in a new issue