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

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