blob: 213e1fb0924f14dc5d333fe24e96b8b01c6edcdd (
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
{ config, pkgs, lib, ... }:
let
cfg = config.vuizvui.user.devhell.profiles.services;
in {
options.vuizvui.user.devhell.profiles.services = {
enable = lib.mkEnableOption "Services profile for devhell";
};
config = lib.mkIf cfg.enable {
virtualisation = {
virtualbox = {
host = {
enable = true;
enableHardening = false;
# TODO: Upstream to nixpkgs and remove this afterwards.
package = pkgs.virtualbox.overrideAttrs (drv: {
patches = (drv.patches or []) ++ lib.singleton (pkgs.fetchpatch {
name = "virtualbox-linux-5.3.patch";
url = "https://git.archlinux.org/svntogit/community.git/plain/"
+ "virtualbox/trunk/015-linux-5-3.patch"
+ "?id=bd69d43ad87dc49e703c8e86d09ab31f2bd0e021";
sha256 = "0gsa0lrhpfn9yvf1hzbx0gxz9ls213v6gallzj6a2dj83r0llic0";
});
});
};
};
libvirtd = {
enable = true;
qemuPackage = pkgs.qemu_kvm;
};
};
location.provider = "geoclue2";
services = {
keybase.enable = true;
pcscd.enable = true;
gpm.enable = true;
openssh.enable = true;
udisks2.enable = true;
geoip-updater.enable = true;
geoclue2.enable = true;
redshift.enable = true;
compton = {
enable = true;
vSync = true;
backend = "glx";
};
};
services.xserver = {
displayManager.lightdm = {
enable = true;
greeters.mini = {
enable = true;
user = "dev";
extraConfig = ''
[greeter]
show-password-label = true
password-label-text = >
show-input-cursor = false
[greeter-theme]
text-color = "#4C566A"
window-color = "#3B4252"
border-width = 0px
layout-space = 5
password-background-color = "#3B4252"
'';
};
};
desktopManager.xterm.enable = false;
desktopManager.default = "none";
};
services.xserver.windowManager = {
default = "i3";
i3 = {
enable = true;
package = pkgs.i3-gaps;
};
};
services.journald.extraConfig = ''
SystemMaxUse = 50M
'';
services.mpd = {
enable = true;
extraConfig = ''
input {
plugin "curl"
}
audio_output {
type "fifo"
name "FIFO Output"
path "/tmp/mpd.fifo"
format "44100:16:2"
}
audio_output {
type "pulse"
name "Pulse Output"
server "127.0.0.1"
}
replaygain "album"
'';
};
};
}
|