Daniel Siepmann
6bf3dd88c4
In order to use from actual path, prevent issues with broken versions. The script was linked against an 2021 version of home-manager which was incompatible with current unstable nixpkgs. That prevented updates. There is now no concrete version, but it will use the once from current PATH. This allows to use the latest "current" version as defined by system.
17 lines
325 B
Nix
17 lines
325 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 store gc
|
|
nix store optimise
|
|
'';
|
|
};
|
|
}
|