-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.nix
93 lines (73 loc) · 1.61 KB
/
common.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
93
{ config, pkgs, ... }:
{
networking.networkmanager.enable = true;
users.users.rotaerk = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
};
time.timeZone = "America/New_York";
console = {
font = "Lat2-Terminus16";
useXkbConfig = true;
};
services = {
logind.extraConfig = ''
# don't shutdown when power button is pressed
HandlePowerKey=ignore
'';
sshd.enable = true;
# Needed for bashmount to work nicely.
udisks2.enable = true;
xserver = {
enable = true;
xkb = {
layout = "us,us";
variant = "dvorak,";
options = "ctrl:swapcaps,grp:toggle";
};
displayManager.lightdm.enable = true;
desktopManager.xterm.enable = true;
# Disables the PS4 controller's touchpad.
inputClassSections = [
''
Identifier "ds-touchpad"
Driver "libinput"
MatchProduct "Wireless Controller Touchpad"
Option "Ignore" "True"
''
];
};
};
hardware = {
bluetooth.enable = true;
pulseaudio = {
enable = true;
support32Bit = true;
};
graphics = {
enable = true;
enable32Bit = true;
};
steam-hardware.enable = true;
};
environment = {
variables = {
EDITOR = "kak";
VISUAL = "kak";
};
systemPackages = with pkgs; [
git
kakoune
pciutils
w3m
];
};
programs.steam.enable = true;
nix = {
package = pkgs.nixVersions.latest;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
nixpkgs.config.allowUnfree = true;
}