mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 10:05:17 +00:00
smb hostname truncate + hard limit
This commit is contained in:
parent
50702bc647
commit
d5e0f9816c
1 changed files with 19 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue