nixpkgs/overlays/custom-update-system/default.nix

17 lines
325 B
Nix
Raw Normal View History

2022-02-14 08:05:09 +01:00
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 store gc
nix store optimise
'';
};
}