-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration-work.nix
93 lines (78 loc) · 2.06 KB
/
configuration-work.nix
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
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, inputs, ... }:
let
secrets = inputs.secrets.secrets;
in {
nixpkgs.config.allowUnfree = true;
imports =
[ # Include the results of the hardware scan.
./hardware-configuration-work.nix
./pkgs.nix
./environment.nix
./users.nix
./services.nix
./hosts.nix
];
boot = {
loader.grub = {
enable = true;
version = 2;
device = "/dev/nvme0n1"; # or "nodev" for efi only
};
kernelPackages = pkgs.linuxPackages_5_10;
kernel.sysctl = {
"net.ipv4.ip_default_ttl" = 65;
"kernel.perf_event_paranoid" = 1;
};
};
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.0.2u" ];
hardware.opengl.driSupport32Bit = true;
programs = {
# steam.enable = true;
adb.enable = true;
};
zramSwap = {
enable = true;
numDevices = 12;
memoryPercent = 100;
};
security.wrappers = {
ubridge = {
source = "${pkgs.ubridge}/bin/ubridge";
capabilities = "cap_net_admin,cap_net_raw=ep";
};
};
networking = {
hostName = "work";
useDHCP = false;
firewall.enable = false;
interfaces.enp7s0.useDHCP = true;
};
services.xserver = {
enable = true;
displayManager = {
defaultSession = "none+i3";
#lightdm.greeters.pantheon.enable = true;
};
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
dmenu polybarFull i3lock-fancy i3lock-fancy-rapid
];
};
synaptics.enable = true;
};
nix = {
# gc.automatic = true;
# gc.options = "--delete-older-than 14d";
requireSignedBinaryCaches = false;
package = pkgs.nixUnstable;
extraOptions = ''
binary-caches = https://cache.nixos.org/ http://jenkins.intr:5000/
experimental-features = nix-command flakes
'';
};
system.stateVersion = "20.03"; # Did you read the comment?
}