21 lines
540 B
Nix
Raw Normal View History

2022-12-21 14:18:03 -07:00
{ config, pkgs, lib, ... }: {
2022-07-25 23:15:26 -04:00
2023-06-05 03:09:38 +00:00
imports = [ ./doas.nix ./journald.nix ./user.nix ./timezone.nix ];
2022-07-25 23:15:26 -04:00
2022-12-21 14:18:03 -07:00
config = lib.mkIf pkgs.stdenv.isLinux {
# Pin a state version to prevent warnings
system.stateVersion =
config.home-manager.users.${config.user}.home.stateVersion;
2023-04-19 16:47:36 -04:00
# This setting only applies to NixOS, different on Darwin
nix.gc.dates = "weekly";
systemd.timers.nix-gc.timerConfig = { WakeSystem = true; };
systemd.services.nix-gc.postStop =
lib.mkIf (!config.server) "systemctl suspend";
2022-12-21 14:18:03 -07:00
};
2022-07-25 23:15:26 -04:00
}