fix gc scheduling for Linux and Mac (read systemd & launchd) that uses

different formats.
This commit is contained in:
Martin Larsson 2025-07-15 16:13:51 +02:00
parent 42a745b98d
commit 09d232dfc6
3 changed files with 7 additions and 5 deletions

View file

@ -21,11 +21,6 @@
gc = { gc = {
automatic = true; automatic = true;
interval = {
Weekday = 0;
Hour = 0;
Minute = 0;
};
options = "--delete-older-than 7d"; options = "--delete-older-than 7d";
}; };
}; };

View file

@ -9,6 +9,11 @@ let
utils = import ../utils.nix; utils = import ../utils.nix;
in in
{ {
nix.gc.interval = {
Weekday = 0;
Hour = 0;
Minute = 0;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
home-manager home-manager

View file

@ -4,6 +4,8 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
nix.gc.dates = "weekly";
programs = { programs = {
xwayland.enable = true; xwayland.enable = true;
sway = { sway = {