]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/graphical.nix
nixos-fallback: inline script
[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 environment.systemPackages = [
17 pkgs.paprefs
18 ];
19
20 services.xserver = {
21 enable = lib.mkDefault true;
22 libinput.enable = lib.mkDefault true;
23 exportConfiguration = lib.mkDefault true; # link /usr/share/X11/ properly
24 desktopManager = {
25 session = [
26 # Let the session be generated by home-manager
27 { name = "home-manager";
28 start = ''
29 ${pkgs.runtimeShell} $HOME/.hm-xsession &
30 waitPID=$!
31 '';
32 }
33 ];
34 xterm.enable = lib.mkDefault false;
35 };
36 displayManager.autoLogin.enable = lib.mkDefault true;
37 };
38 }