-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpapacube.nix
173 lines (139 loc) · 3.34 KB
/
papacube.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
# 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, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
networking.hostName = "papacube"; # Define your hostname.
networking.hostId = "07b765cf";
networking.networkmanager.enable = true;
# Select internationalisation properties.
i18n = {
consoleFont = "lat9w-16";
consoleKeyMap = "be-latin1";
defaultLocale = "fr_BE.UTF-8";
};
# Needed for steam
hardware.opengl.driSupport32Bit = true;
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
# CmdLine
sl
nettools
git
scala
sshpass
openssl
sshfsFuse
pythonPackages.py3status
python3
python3Packages.ipython
python3Packages.numpy
python3Packages.scipy
ruby
htop
sbt
jdk
unrar
unzip
vim
wget
which
packer
ansible
# Desktop Specific
vagrant
# Games
steam
# Graphical environment
dmenu
firefoxWrapper
i3lock
i3status
networkmanagerapplet
#Non-Free
skype
sublime3
];
fonts = {
enableFontDir = true;
enableGhostscriptFonts = true;
fonts = [
pkgs.anonymousPro
pkgs.corefonts
pkgs.dejavu_fonts
pkgs.font-awesome-ttf
pkgs.freefont_ttf
pkgs.terminus_font
pkgs.ttf_bitstream_vera
];
};
nix = {
extraOptions = ''
gc-keep-outputs = true
gc-keep-derivations = true
auto-optimise-store = true
'';
};
nixpkgs.config = {
allowUnfree = true;
firefox = {
jre = false;
enableGoogleTalkPlugin = true;
enableAdobeFlash = true;
};
};
# List services that you want to enable:
programs = {
bash.enableCompletion = true;
};
networking.firewall.enable = false;
networking.firewall.allowPing = true;
networking.firewall.allowedTCPPorts = [ 80 8080 9200 7630 7474 ];
virtualisation.virtualbox.host.enable = true;
services = {
# Enable CUPS to print documents.
printing.enable = true;
openssh.enable = true;
openssh.allowSFTP = false;
openssh.forwardX11 = false;
openssh.permitRootLogin = "no";
openssh.passwordAuthentication = true;
openssh.challengeResponseAuthentication = false;
postgresql = {
enable = true;
};
httpd = {
enable = true;
adminAddr = "a.borsu@gmail.com";
enablePHP = true;
documentRoot = "/www";
# extraSubservices = [ {
# serviceType = "owncloud";
# dbPassword = "test";
# adminPassword = "test";
# }];
};
xserver = {
xrandrHeads = ["HDMI2" "HDMI1"];
enable = true;
layout = "be";
windowManager.i3.enable = true;
windowManager.default = "i3";
desktopManager.xfce.enable = true;
displayManager.lightdm.enable = true;
};
};
users.extraUsers."aborsu" =
{ #createUser = true;
extraGroups = [ "wheel" "vboxusers" "networkmanager" ] ;
home = "/home/aborsu";
description = "Augustin Borsu";
uid = 1000;
};
time.timeZone = "Europe/Brussels";
}