forked from puffnfresh/nix-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
199 lines (171 loc) · 4.54 KB
/
configuration.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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# 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, ... }:
let
hsPackages = with pkgs.haskellPackages; [
cabal2nix
cabalInstall
djinn
doctest
ghc
ghcCore
ghcid
hlint
idris
pandoc
pointfree
pointful
purescript
stylishHaskell
taffybar
xmobar
yeganesh
];
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the gummiboot efi boot loader.
boot.loader.gummiboot.enable = true;
boot.loader.gummiboot.timeout = 10;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "bsmith-laptop"; # Define your hostname.
networking.hostId = "f18ed587";
networking.wireless.enable = true; # Enables wireless.
# Select internationalisation properties.
i18n = {
# consoleFont = "lat9w-16";
consoleKeyMap = "dvorak";
# defaultLocale = "en_US.UTF-8";
};
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
# environment.systemPackages = with pkgs; [
# wget
# ];
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable the X11 windowing system.
# services.xserver.enable = true;
# services.xserver.xkbOptions = "eurosign:e";
# Enable the KDE Desktop Environment.
# services.xserver.displayManager.kdm.enable = true;
# services.xserver.desktopManager.kde4.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
# users.extraUsers.guest = {
# isNormalUser = true;
# uid = 1000;
# };
time.timeZone = "America/Los_Angeles";
fonts.enableCoreFonts = true;
nix.binaryCaches = [ http://cache.nixos.org http://hydra.nixos.org ];
programs.light.enable = true;
environment.systemPackages = with pkgs; [
ack
awesome
acpi
autojump
axel
bind
binutils
chromium
dmenu
emacs
evince
file
gitFull
htop
(haskellPackages.hoogleLocal.override {
packages = hsPackages;
})
keepassx
mg
mplayer
nix-repl
openconnect
powertop
rxvt_unicode
sbt
vim
scrot
silver-searcher
terminator
vagrant
wpa_supplicant_gui
xdg_utils
xlibs.xev
xlibs.xset
] ++ hsPackages;
services.xserver = {
enable = true;
vaapiDrivers = [ pkgs.vaapiIntel ];
layout = "us";
xkbVariant = "dvorak";
desktopManager.default = "none";
desktopManager.xterm.enable = false;
displayManager = {
desktopManagerHandlesLidAndPower = false;
};
windowManager.default = "awesome";
windowManager.awesome.enable = true;
windowManager.xmonad.enable = true;
windowManager.xmonad.enableContribAndExtras = true;
windowManager.xmonad.extraPackages = haskellPackages: [
haskellPackages.taffybar
];
# TODO: Use the mtrack driver but do better than this.
# multitouch.enable = true;
# multitouch.invertScroll = true;
synaptics.additionalOptions = ''
Option "VertScrollDelta" "-100"
Option "HorizScrollDelta" "-100"
'';
synaptics.buttonsMap = [ 1 3 2 ];
synaptics.enable = true;
synaptics.tapButtons = false;
synaptics.fingersMap = [ 0 0 0 ];
synaptics.twoFingerScroll = true;
synaptics.vertEdgeScroll = false;
videoDrivers = [ "intel" ];
screenSection = ''
Option "DPI" "96 x 96"
Option "NoLogo" "TRUE"
Option "nvidiaXineramaInfoOrder" "DFP-2"
Option "metamodes" "HDMI-0: nvidia-auto-select +0+0, DP-2: nvidia-auto-select +1920+0 {viewportin=1680x1050}"
'';
xkbOptions = "terminate:ctrl_alt_bksp, ctrl:nocaps";
};
nixpkgs.config = {
allowUnfree = true;
chromium.enablePepperFlash = true;
chromium.enablePepperPDF = true;
packageOverrides = pkgs: {
linux_3_17 = pkgs.linux_3_17.override {
extraConfig =
''
THUNDERBOLT m
'';
};
};
};
users.extraUsers.bsmith = {
name = "bsmith";
group = "users";
uid = 1000;
isNormalUser = true;
extraGroups = [ "wheel" ];
createHome = true;
home = "/home/bsmith";
shell = "/run/current-system/sw/bin/zsh";
};
services.upower.enable = true;
services.openssh.enable = true;
programs.ssh.agentTimeout = "12h";
programs.zsh.enable = true;
}