-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasus_g75vw_config
258 lines (215 loc) · 6 KB
/
asus_g75vw_config
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
# Edit this configuration file to define what should be installed on
# the system. Help is available in the configuration.nix(5) man page
# or the NixOS manual available on virtual console 8 (Alt+F8).
{ config, pkgs, ... }:
{
require =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
#enable pulseaudio
#hardware.pulseaudio.enable = true;
boot.initrd.kernelModules =
[ # Specify all kernel modules that are necessary for mounting the root
# filesystem.
# "xfs" "ata_piix"
];
# always use the newest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [
"acpi = on"
"acpi_backlight=vendor"
];
boot.postBootCommands = "echo 3 > /sys/class/leds/asus\:\:kbd_backlight/brightness
";
boot.extraModprobeConfig = ''
options ath9k nohwcrypt=1
options snd-hda-intel model=asus-mode4
'';
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.extraEntries = ''
menuentry "Windows 8" {
insmod ntfs
set root='(hd0,1)'
chainloader +1
}
'';
time.timeZone = "America/New_York";
networking.hostName = "nixos"; # Define your hostname.
# for networkmanagement applet to work in kde your users must be members
# of the "networkmanager" group!
networking.networkmanager.enable = true;
# Add filesystem entries for each partition that you want to see
# mounted at boot time. This should include at least the root
# filesystem.
fileSystems."/".device = "/dev/disk/by-label/nixos";
# fileSystems."/data" = # where you want to mount the device
# { device = "/dev/sdb"; # the device
# fsType = "ext3"; # the type of the partition
# options = "data=journal";
# };
# List swap partitions activated at boot time.
swapDevices =
[ { device = "/dev/disk/by-label/nixswap"; }
];
# Select internationalisation properties.
# i18n = {
# consoleFont = "lat9w-16";
# consoleKeyMap = "us";
# defaultLocale = "en_US.UTF-8";
# };
nixpkgs.config.packageOverrides = pkgs :
{
kde4 = pkgs.recurseIntoAttrs pkgs.kde411;
jdk = pkgs.oraclejdk;
jre = pkgs.oraclejre;
wine = pkgs.wineUnstable;
};
# List services that you want to enable:
# Enable the locate service for quickly finding files
services.locate.enable = true;
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
services.printing.cupsdConf = ''
BrowseRemoteProtocols all
'';
#
# Enable the X11 windowing system.
services.xserver.enable = true;
# make sure X11 has access to 32 bit drivers for steam
services.xserver.driSupport32Bit = true;
# services.xserver.layout = "us";
# services.xserver.xkbOptions = "eurosign:e";
services.xserver.synaptics.enable = true;
services.xserver.synaptics.twoFingerScroll = true;
services.xserver.synaptics.accelFactor = "0.076";
services.xserver.synaptics.horizontalScroll = true;
services.xserver.synaptics.maxSpeed = "13.0";
services.xserver.synaptics.minSpeed = "0.1";
services.xserver.synaptics.palmDetect = true;
services.xserver.synaptics.vertEdgeScroll = false;
# Enable the KDE Desktop Environment.
services.xserver.displayManager.kdm.enable = true;
services.xserver.desktopManager.kde4.enable = true;
# Enable the Awesome window manager
services.xserver.windowManager.awesome.enable = true;
# Enable mongodb
services.mongodb.enable = true;
# Enable elasticsearch
services.elasticsearch.enable = true;
# Enable samba for windows filesharing
services.samba.enable = true;
services.samba.securityType = "share";
services.samba.extraConfig = ''
workgroup = WORKGROUP
server string = smbnix
netbios name = smbnix
security = share
use sendfile = yes
#max protocol = smb2
[rw-files]
comment = Temporary rw files
path = /storage
read only = no
writable = yes
public = yes
'';
# Eanble avahi for network service discovery
services.avahi.enable = true;
services.avahi.nssmdns = true;
environment.systemPackages = with pkgs; [
#kde4.networkmanagement #pending version bump in pull req
vlc
vim
wget
git
firefoxWrapper
chromiumDevWrapper
google_talk_plugin
oxygen_gtk
nodejs
jdk
unzip
redis
dropbox
dropbox-cli
keepass
skype
net_snmp
#kde stuff
kde4.kdemultimedia
kde4.kdegraphics
kde4.kdelibs
kde4.kdenetwork
kde4.kdeutils
kde4.kdeadmin
kde4.kdebindings
kde4.kdeartwork
kde4.kde_baseapps
kde4.kdeplasma_addons
kde4.kde_wallpapers
kde4.k3b
kde4.bluedevil
kde4.kdevelop
kde4.kdiff3
kde4.amarok
#kde4.kmplayer
#kde4.kipi_plugins
kde4.partitionManager
kde4.semnotes
kde4.kmix
kde4.kactivities
kde4.print_manager
flashplayer
#libreoffice
# wesnoth
psmisc
steamChrootEnv
transmission_remote_gtk
gnupg
lftp
which #rubymine will not run without it
bashCompletion
flightgear
#cpufrequtils
smplayer
#kde4.kmplayer
mplayer
wine
winetricks
glxinfo
#tigervnc
urbanterror
alienarena
bzflag
castle_combat
freeciv
naev
#rigsofrods broken by caelum library
sauerbraten
#scorched3d
stuntrally
#tremulous
#speed_dreams mirror was broken
torcs
warmux
warsow
xonotic
gnome_terminator
kde4.yakuake
];
#enable google talk and quake live plugins for chromium
nixpkgs.config.chromiumDev.enableGoogleTalkPlugin = true;
nixpkgs.config.chromiumDev.enableQuakeLive = true;
#nixpkgs.config.qt5.gtkStyle = true;
environment.shellInit = ''
export GTK_PATH=$GTK_PATH:${pkgs.oxygen_gtk}/lib/gtk-2.0
export GTK2_RC_FILES=$GTK2_RC_FILES:${pkgs.oxygen_gtk}/share/themes/oxygen-gtk/gtk-2.0/gtkrc
'';
}