blob: b60d18b6c227897d1ee9358f2af39776205764fb (
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
|
{ config, lib, pkgs, ... }:
let ports = {
minecraft = 25565;
}; in
{
networking.firewall.allowedTCPPorts = [ ports.minecraft ]; # socks proxy
imports = [
../config/desktop.nix
#../config/laptop.nix
../config/yubikey.nix
../config/thinkpad.nix
# ../config/ap.nix
# ../config/pxe.nix
];
networking = {
hostName = "pincer";
extraHosts = ''
0.0.0.0 minecraft.net
'';
};
# services.displayManager.slim.enable = lib.mkForce false;
# services.xserver.desktopManager.kodi.enable = true;
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelModules = ["xpad"];
initrd.luks.devices = {
cryptroot = {
device = "/dev/sda6";
allowDiscards = true;
};
};
extraModprobeConfig = ''
# option iwlwifi swcrypto=1
options iwlmvm power_scheme=1
'';
};
fileSystems = {
"/boot" = {
mountPoint = "/boot";
device = "/dev/sda1";
fsType = "vfat";
};
"/" = {
mountPoint = "/";
device = "/dev/mapper/cryptroot";
fsType = "btrfs";
options = ["subvol=active/nixos-root" "discard" "compress=lzo"];
};
"/btrfs" = {
mountPoint = "/btrfs";
device = "/dev/mapper/cryptroot";
fsType = "btrfs";
options = ["discard" "compress=lzo"];
};
};
systemd.extraConfig = "DefaultLimitNOFILE=1048576";
security.pam.loginLimits = [{
domain = "*";
type = "hard";
item = "nofile";
value = "1048576";
}];
}
|