]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/graphical.nix
Revert "aubergine: hack dbus"
[julm/julm-nix.git] / nixos / profiles / graphical.nix
1 { config, pkgs, lib, ... }:
2 {
3 console.useXkbConfig = lib.mkDefault true;
4
5 services.dbus.packages = [ pkgs.dconf ];
6 programs.dconf = {
7 enable = true;
8 };
9
10 services.gvfs.enable = lib.mkDefault true;
11 # Allow members of the "adbusers" group to mount Android devices via MTP.
12 programs.adb.enable = true;
13
14 sound.enable = lib.mkDefault true;
15 hardware.pulseaudio.enable = lib.mkDefault true;
16
17 services.xserver = {
18 enable = lib.mkDefault true;
19 libinput.enable = lib.mkDefault true;
20 exportConfiguration = lib.mkDefault true; # link /usr/share/X11/ properly
21 desktopManager = {
22 session = [
23 # Let the session be generated by home-manager
24 { name = "home-manager";
25 start = ''
26 ${pkgs.runtimeShell} $HOME/.hm-xsession &
27 waitPID=$!
28 '';
29 }
30 ];
31 xterm.enable = lib.mkDefault false;
32 };
33 displayManager.autoLogin.enable = lib.mkDefault true;
34 };
35 }