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
|
2023-07-21 20:15:38 +10:00
|
|
|
./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
|
|
|
|
2023-07-29 19:30:32 +10:00
|
|
|
environment.etc."ssh/sshd_config.d/darwin.conf".text = ''
|
2024-01-25 12:42:48 +10:00
|
|
|
HostKey /etc/ssh/ssh_host_ed25519_key
|
2023-07-29 19:30:32 +10:00
|
|
|
'';
|
|
|
|
|
2024-03-01 17:35:33 +01:00
|
|
|
system.activationScripts.postActivation.text = ''
|
2024-04-19 14:27:13 +10:00
|
|
|
echo disabling spotlight indexing... >&2
|
|
|
|
mdutil -a -i off -d &> /dev/null
|
|
|
|
mdutil -a -E &> /dev/null
|
2024-03-01 17:35:33 +01:00
|
|
|
'';
|
2023-07-17 13:53:06 +10:00
|
|
|
}
|