infra/modules/darwin/common/default.nix

31 lines
688 B
Nix
Raw Permalink Normal View History

2024-09-26 12:59:00 +10:00
{ inputs, ... }:
2023-07-17 13:53:06 +10:00
{
imports = [
2024-11-21 12:51:20 +10:00
../../shared/known-hosts.nix
../../shared/nix-daemon.nix
2023-12-11 09:40:00 +10:00
./apfs-cleanup.nix
2024-11-21 12:53:07 +10:00
./builder.nix
2024-07-31 15:41:40 +10:00
./network.nix
2024-09-26 12:59:00 +10:00
./packages.nix
2023-07-21 20:12:20 +10:00
./reboot.nix
./software-update.nix
2024-12-16 08:34:43 +10:00
./sops-nix.nix
2023-07-17 13:53:06 +10:00
./telegraf.nix
2024-09-12 14:23:03 +10:00
./users.nix
2024-11-21 12:51:20 +10:00
inputs.srvos.darwinModules.server
2023-07-17 13:53:06 +10:00
];
2024-10-04 08:08:29 +10:00
# https://github.com/NixOS/nix/issues/7273
nix.settings.auto-optimise-store = false;
2023-07-17 13:53:06 +10:00
environment.etc."ssh/sshd_config.d/darwin.conf".text = ''
HostKey /etc/ssh/ssh_host_ed25519_key
'';
system.activationScripts.postActivation.text = ''
echo disabling spotlight indexing... >&2
mdutil -a -i off -d &> /dev/null
mdutil -a -E &> /dev/null
'';
2023-07-17 13:53:06 +10:00
}