blob: 46b6ad1c62c2018bbeae7ade3b7810a73944d3f2 (
plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
{ config, lib, pkgs, ... }: {
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
system-features = [ "big-parallel" "kvm" ];
auto-optimise-store = true;
download-buffer-size = 134217728;
};
gc.automatic = false;
optimise.automatic = true;
};
nixpkgs.config.allowUnfree = true;
hardware.enableRedistributableFirmware = true;
boot.kernel.sysctl."kernel.yama.ptrace_scope" = "0";
security.pam.loginLimits = [
{
domain = "*";
type = "soft";
item = "nice";
value = "-11";
}
{
domain = "*";
type = "hard";
item = "nice";
value = "-11";
}
{
domain = "*";
type = "soft";
item = "rtprio";
value = "99";
}
{
domain = "*";
type = "hard";
item = "rtprio";
value = "99";
}
{
domain = "*";
type = "soft";
item = "nofile";
value = "8192";
}
{
domain = "*";
type = "hard";
item = "nofile";
value = "1048576";
}
{
domain = "*";
type = "soft";
item = "memlock";
value = "unlimited";
}
{
domain = "*";
type = "hard";
item = "memlock";
value = "unlimited";
}
];
#systemd.services.nix-daemon.serviceConfig.LimitNOFILE = lib.mkForce 134217728;
security.wrappers = {
ping = {
owner = "root";
group = "root";
source = "${pkgs.iputils.out}/bin/ping";
capabilities = "cap_net_raw+p";
};
};
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
libvdpau-va-gl
libva-vdpau-driver
];
};
environment.systemPackages = with pkgs; [
git # flakes
appimage-run
i2c-tools
pciutils
smartmontools
lm_sensors
libdrm
libva-utils
vulkan-loader
vulkan-validation-layers
vulkan-tools
mesa-demos
];
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
services.openssh.enable = true;
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
i18n.supportedLocales = [
"C.UTF-8/UTF-8"
"${config.i18n.defaultLocale}/UTF-8"
"ja_JP.UTF-8/UTF-8"
"ko_KR.UTF-8/UTF-8"
];
i18n.glibcLocales = pkgs.glibcLocales.override {
allLocales = false;
locales = [
"C.UTF-8/UTF-8"
"${config.i18n.defaultLocale}/UTF-8"
"ja_JP.UTF-8/UTF-8"
"ko_KR.UTF-8/UTF-8"
];
};
console = {
font = "Lat2-Terminus16";
keyMap = "us";
useXkbConfig = false;
};
}
|