Configure nix.gc to automatically clean up old home-manager generations weekly, which complements the existing system-level gc. Uses --delete-older-than 10d on Linux to maintain a rollback window, but overrides to -d on Darwin to work around a launchd bug where multi-part options aren't properly split into separate arguments.
12 lines
318 B
Nix
12 lines
318 B
Nix
{
|
|
# Base imports for Darwin home configurations
|
|
# Includes Darwin-specific roles that only work on macOS
|
|
imports = [
|
|
../aerospace
|
|
];
|
|
|
|
# Override to use -d instead of --delete-older-than on Darwin due to launchd bug
|
|
# https://github.com/nix-community/home-manager/issues/7211
|
|
nix.gc.options = "-d";
|
|
}
|