]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/graphical.nix
acpid: fix cpupower
[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 programs.dconf = {
18 enable = true;
19 };
20
21 services.gvfs.enable = lib.mkDefault true;
22
23 sound.enable = lib.mkDefault true;
24 hardware.pulseaudio.enable = lib.mkDefault true;
25
26 services.udev.packages = [
27 # Allow members of the "adbusers" group to mount Android devices via MTP.
28 pkgs.android-udev-rules
29 ];
30
31 services.xserver = {
32 enable = lib.mkDefault true;
33 libinput.enable = lib.mkDefault true;
34 exportConfiguration = lib.mkDefault true; # link /usr/share/X11/ properly
35 desktopManager = {
36 session = [
37 # Let the session be generated by home-manager
38 { name = "home-manager";
39 start = ''
40 ${pkgs.runtimeShell} $HOME/.hm-xsession &
41 waitPID=$!
42 '';
43 }
44 ];
45 xterm.enable = lib.mkDefault false;
46 };
47 displayManager.autoLogin.enable = lib.mkDefault true;
48 };
49 }