blob: f3dece17dafbba395f841d0a9db220f3853472dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
self,
config,
pkgs,
lib,
...
}:
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernel.sysctl = {
"net.ipv4.tcp_congestion_control" = "bbr";
"net.ipv4.tcp_ecn" = 1;
"net.ipv4.tcp_fastopen" = 3;
"net.ipv4.tcp_tw_reuse" = 1;
};
};
i18n = {
defaultLocale = "en_US.UTF-8";
supportedLocales = [
"en_US.UTF-8/UTF-8"
];
};
time.timeZone = "America/Los_Angeles";
users.motdFile = "/etc/motd";
environment.etc.motd.text = ''
Machine ${config.networking.hostName}
NixOS ${config.system.nixos.release}
@ ${self.shortRev or self.dirtyShortRev}
'';
## disable that slow "building man-cache" step
documentation.man.generateCaches = lib.mkForce false;
users = {
mutableUsers = false;
users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi"
];
};
security.sudo.wheelNeedsPassword = false;
environment.systemPackages = with pkgs; [
curl
dysk
fd
fish
git
htop
jq
mtr
pciutils
powertop
ripgrep
tcpdump
traceroute
vim
wireguard-tools
];
}
|