git ssb


0+

cryptix / dotcryptix



Tree: c475ad20c2c71140f39209984924cedf63e14d6d

Files: c475ad20c2c71140f39209984924cedf63e14d6d / configuration.nix

4554 bytesRaw
1{ config, pkgs, lib, ... }:
2
3{
4 require = [
5 ./hardware-configuration.nix
6 ];
7
8 imports = [
9 ./common_configuration.nix
10 ];
11
12 boot.loader.systemd-boot.enable = true;
13 #boot.loader.gummiboot.enable = true;
14 boot.loader.efi.canTouchEfiVariables = true;
15 boot.supportedFilesystems = ["zfs"];
16 services.zfs.autoSnapshot.enable = true;
17
18 networking = {
19 hostId = "deadbeef";
20 hostName = "cryptx220";
21 };
22
23
24 services.postgresql.enable = false;
25
26 services.dhcpd = {
27 enable = false;
28 interfaces = [ "enp0s25" ];
29 extraConfig = ''
30 option subnet-mask 255.255.255.0;
31 option broadcast-address 192.168.1.255;
32 subnet 192.168.1.0 netmask 255.255.255.0 {
33 range 192.168.1.100 192.168.1.200;
34 }
35 '';
36 };
37
38 services.cjdns = {
39 enable = true;
40 ETHInterface.bind = "all";
41 UDPInterface.connectTo = {
42 "139.59.136.165:500" = {
43 password= "xcjzcvlfn2OBqp5raypjarlgxl#wqyb";
44 publicKey= "9rtjwq067swj91bzxz2rfk1wrcw217c6nyu5t97glrc2zy86d2z0.k";
45 hostname= "keksvps.h";
46 };
47 "mindeco.de:500" = {
48 password= "jjg8tbvz7gtp5fs4nvpk5jzwn00700d";
49 publicKey = "3cvs0y742cxw961qfwg7lfs95fz4jpnh0bf8x48p8k49u7sd3b30.k";
50 hostname = "mindeco.h";
51 };
52
53 "176.9.105.201:4464"= {
54 password= "ir88xwtel72fen3ch7aug603s26nu3a";
55 hostname= "jazzanet.h";
56 publicKey= "yrgb0xwfr9pz8swvnv6m9by8zw7v7uxxhl07qz318cjuvfgs1fc0.k";
57 };
58 "81.4.125.34:64512"= {
59 password= "OGMlsucXQ4G2VkFUGLgpaUcG7XJcF6PMoX";
60 hostname= "ancha.lurk.space";
61 publicKey= "c5bu0npp8by4jym96mh0vyy81sn9lhbc01f445nvz64dvdjt98j0.k";
62 };
63 "[2001:470:1f15:156::31]:64512"= {
64 password= "OGMlsucXQ4G2VkFUGLgpaUcG7XJcF6PMoX";
65 hostname= "ancha.lurk.space";
66 publicKey= "c5bu0npp8by4jym96mh0vyy81sn9lhbc01f445nvz64dvdjt98j0.k";
67 };
68
69 };
70 };
71
72 services.syncthing = {
73 enable = true;
74 user = "cryptix";
75 };
76
77 services.tftpd = {
78 enable = false;
79 path = "/var/tftpd";
80
81 };
82 services.printing.enable = false;
83
84 services.xserver = {
85 enable = true;
86 layout = "us,de";
87 xkbOptions = "eurosign:e";
88 xkbVariant = "winkeys";
89
90 inputClassSections = [''
91 Identifier "Trackpoint Wheel Emulation"
92 MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint"
93 MatchDevicePath "/dev/input/event*"
94 Option "EmulateWheel" "true"
95 Option "EmulateWheelButton" "2"
96 Option "Emulate3Buttons" "false"
97 Option "XAxisMapping" "6 7"
98 Option "YAxisMapping" "4 5"
99 ''];
100
101 windowManager.i3.enable = true;
102 displayManager = {
103 job.logsXsession = true;
104 sessionCommands = ''
105 urxvtd &
106 nm-applet &
107 cbatticon &
108 ${pkgs.xss-lock}/bin/xss-lock -- i3lock -n &
109 '';
110 };
111 # TODO
112 # displayManager.sessionCommands = with pkgs; lib.mkAfter ''
113 # gpg-connect-agent /bye
114 # GPG_TTY=$(tty)
115 # export GPG_TTY
116 # unset SSH_AGENT_PID
117 # export SSH_AUTH_SOCK="${config.users.extraUsers.cryptix.home}/.gnupg/S.gpg-agent.ssh"
118 # '';
119 };
120
121 programs = {
122 ssh.startAgent = true;
123 zsh.enable = true;
124 };
125
126 fonts = {
127 enableFontDir = true;
128 enableGhostscriptFonts = true;
129 fonts = with pkgs; [
130 dejavu_fonts # monospaced
131 inconsolata
132 terminus_font
133 unifont # some international languages
134 ];
135 };
136
137 environment.systemPackages = with pkgs; [
138 #build systems
139 stdenv
140 python
141 nodejs-6_x
142 cmake
143 pkgconfig
144 #gcc
145 clang
146 gnumake
147 autoconf
148 automake
149 libtool
150 gnum4
151
152 # dst
153 jansson
154 dlib
155 postgresql
156 #libpointmatcher #TODO: master?
157
158 # desktop
159 networkmanager
160 networkmanagerapplet
161 redshift
162 cbatticon
163 vimHugeX
164 gitAndTools.gitFull
165 mercurialFull
166 gnuplot
167 torbrowser
168 firefox
169 chromium
170 keepassx2
171 thunderbird
172 pcmanfm
173 xsel
174 xlsfonts
175 #xev #TODO: master?
176 xpra
177 xdotool
178 terminus_font
179 rxvt_unicode
180 xss-lock
181 i3lock
182 dmenu
183 libnotify
184 dunst
185 xorg.xbacklight
186 bwm_ng
187 gparted
188 wireshark-gtk
189 evince
190 bc
191 zim
192 zathura
193 texlive.combined.scheme-full
194 qrencode
195 electron
196
197
198 #hugo
199 #ipfs
200
201 # media
202 gimp
203 imagemagick
204 audacity
205 ffmpeg
206 pavucontrol
207 pamixer
208 vlc
209 mplayer
210 youtube-dl
211 kid3
212
213
214 #comms
215 mumble
216 gajim
217 python27Packages.python-axolotl
218 python27Packages.python-axolotl-curve25519
219 ];
220
221 # The NixOS release to be compatible with for stateful data such as databases.
222 system.stateVersion = "16.09";
223 #system.autoUpgrade.enable = true;
224}
225

Built with git-ssb-web