]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/graphical.nix
tmux: enable socket activation
[julm/julm-nix.git] / nixos / profiles / graphical.nix
1 { config, pkgs, lib, ... }:
2 {
3 console.useXkbConfig = lib.mkDefault true;
4
5 networking.networkmanager = {
6 enable = lib.mkDefault true;
7 #dhcp = "dhcpcd";
8 logLevel = lib.mkDefault "INFO";
9 wifi = {
10 #backend = "iwd";
11 #backend = "wpa_supplicant";
12 powersave = lib.mkDefault false;
13 };
14 };
15
16 services.dbus.packages = [ pkgs.dconf ];
17
18 services.gvfs.enable = lib.mkDefault true;
19
20 sound.enable = lib.mkDefault true;
21 hardware.pulseaudio.enable = lib.mkDefault true;
22
23 services.udev.packages = [
24 # Allow members of the "adbusers" group to mount Android devices via MTP.
25 pkgs.android-udev-rules
26 ];
27
28 services.xserver = {
29 enable = lib.mkDefault true;
30 libinput.enable = lib.mkDefault true;
31 exportConfiguration = lib.mkDefault true; # link /usr/share/X11/ properly
32 desktopManager = {
33 session = [
34 # Let the session be generated by home-manager
35 { name = "home-manager";
36 start = ''
37 ${pkgs.runtimeShell} $HOME/.hm-xsession &
38 waitPID=$!
39 '';
40 }
41 ];
42 xterm.enable = lib.mkDefault false;
43 };
44 displayManager.autoLogin.enable = lib.mkDefault true;
45 };
46 }