Daniel Siepmann
9e801efd12
This is a try, not sure if I need it, it probably will increase consumed time by update procedure.
18 lines
341 B
Nix
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
|
|
'';
|
|
};
|
|
}
|