mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 07:04:47 +00:00
smb hostname truncate + hard limit (#29)
This commit is contained in:
parent
3a40e8d634
commit
a537e0827a
1 changed files with 19 additions and 1 deletions
|
|
@ -1,10 +1,28 @@
|
||||||
{ ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
security.pam.services.sudo_local.touchIdAuth = true;
|
security.pam.services.sudo_local.touchIdAuth = true;
|
||||||
|
|
||||||
# Karabiner-Elements is managed via Homebrew cask because nix-darwin's
|
# Karabiner-Elements is managed via Homebrew cask because nix-darwin's
|
||||||
# built-in module is broken with 15.7+ (missing karabiner_grabber/observer binaries).
|
# 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 = {
|
system.defaults = {
|
||||||
dock.autohide = true;
|
dock.autohide = true;
|
||||||
dock.show-recents = false;
|
dock.show-recents = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue