blob: ea745c203d1353b96889c528d4c4f85561a1881c (
plain) (
blame)
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
|
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.vuizvui.user.openlab.labtops;
in
{
options.vuizvui.user.openlab.labtops = {
enable = mkEnableOption "basic shared functionality of labtops";
};
config = mkIf cfg.enable {
vuizvui.user.openlab.base.enable = true;
hardware.pulseaudio = {
enable = true;
zeroconf.discovery.enable = true;
};
networking.wireless = {
enable = true;
networks."Labor 2.0".psk = "nerdhoehle2";
};
# TODO: a way to modularly specify usage patterns (e.g. 3d-printing, arduino &c.)
environment.systemPackages = with pkgs; let
baseGUI = [
filezilla
chromium
gnome3.gedit
gmpc
libreoffice
vlc
];
image = [
gimp
inkscape
];
media = [
mpv
vlc
pavucontrol
];
three-d = [
# TODO doesn’t build on i686
# TODO add a “packageset” mechanism
blender
# TODO build fail
# antimony
];
three-d-printing = [
freecad
openscad
printrun
slic3r
];
arduinoPkgs = [
ino
arduino
];
tools = [
unzip
];
in baseGUI ++ image ++ media
++ three-d ++ three-d-printing ++ arduinoPkgs
++ tools;
services.xserver = {
enable = true;
layout = "us";
xkbOptions = "eurosign:e";
displayManager = {
auto.enable = true;
auto.user = "openlab";
sessionCommands = with pkgs; ''
${xorg.xset}/bin/xset r rate 250 35
'';
};
desktopManager.xfce.enable = true;
synaptics = {
enable = true;
minSpeed = "0.5";
accelFactor = "0.01";
};
};
users.users.openlab.extraGroups = [ "dialout" ];
# fix for emacs
programs.bash.promptInit = "PS=\"# \"";
programs.man.enable = true;
};
}
|