smb hostname truncate + hard limit

This commit is contained in:
Harivansh Rathi 2026-04-01 21:24:49 +00:00
parent 50702bc647
commit d5e0f9816c

View file

@ -1,10 +1,28 @@
{ ... }:
{ config, ... }:
{
security.pam.services.sudo_local.touchIdAuth = true;
# Karabiner-Elements is managed via Homebrew cask because nix-darwin's
# built-in module is broken with 15.7+ (missing karabiner_grabber/observer binaries).
system.defaults.smb.NetBIOSName = builtins.substring 0 15 config.networking.hostName;
system.defaults.smb.ServerDescription = config.networking.hostName;
launchd.daemons."limit.maxfiles" = {
serviceConfig = {
Label = "limit.maxfiles";
ProgramArguments = [
"/bin/launchctl"
"limit"
"maxfiles"
"65536"
"200000"
];
RunAtLoad = true;
KeepAlive = false;
};
};
system.defaults = {
dock.autohide = true;
dock.show-recents = false;