infra/modules/darwin/common/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2023-12-31 12:43:17 +10:00
{ inputs, pkgs, ... }:
2023-07-17 13:53:06 +10:00
{
imports = [
2023-12-11 09:40:00 +10:00
./apfs-cleanup.nix
2024-07-31 15:41:40 +10:00
./network.nix
2024-07-15 11:25:07 +10:00
./optimise.nix
2023-07-21 20:12:20 +10:00
./reboot.nix
./software-update.nix
2023-07-17 13:53:06 +10:00
./telegraf.nix
./upgrade-diff.nix
2024-09-12 14:23:03 +10:00
./users.nix
2024-03-10 09:26:39 +10:00
../../shared/known-hosts.nix
2023-07-29 17:37:07 +10:00
../../shared/nix-daemon.nix
2024-05-05 15:01:47 +10:00
inputs.agenix.darwinModules.age
2023-07-17 13:53:06 +10:00
];
services.nix-daemon.enable = true;
programs.zsh.enable = true;
documentation.enable = false;
programs.info.enable = false;
2023-07-29 17:37:07 +10:00
# srvos
2023-07-17 13:53:06 +10:00
nix.settings.builders-use-substitutes = true;
2023-07-29 17:37:07 +10:00
# srvos
2023-07-17 13:53:06 +10:00
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
2024-07-24 19:05:26 +10:00
environment.systemPackages = with pkgs; [ htop ];
2023-07-17 13:53:06 +10:00
system.includeUninstaller = false;
# srvos
environment.etc."ssh/sshd_config.d/darwin.conf".text = ''
2024-06-21 09:49:19 +10:00
AuthorizedKeysFile none
HostKey /etc/ssh/ssh_host_ed25519_key
KbdInteractiveAuthentication no
PasswordAuthentication no
'';
system.activationScripts.postActivation.text = ''
echo disabling spotlight indexing... >&2
mdutil -a -i off -d &> /dev/null
mdutil -a -E &> /dev/null
'';
2023-09-16 07:56:59 +10:00
time.timeZone = "GMT";
2023-07-17 13:53:06 +10:00
}