nixpkgs/overlays/custom-update-system/default.nix
Daniel Siepmann 9e801efd12
Integrate nix-index
This is a try, not sure if I need it, it probably will increase consumed
time by update procedure.
2022-05-22 19:13:53 +02:00

18 lines
341 B
Nix

self: super:
{
custom-update-system = super.pkgs.writeShellApplication {
name = "custom-update-system";
text = ''
nix-channel --update
home-manager switch
home-manager expire-generations '-30 days'
nix-env --delete-generations +5
nix-index
nix store gc
nix store optimise
'';
};
}