]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/carotte/xserver.nix
losurdo: wireguard: fix already defined attribute
[sourcephile-nix.git] / hosts / carotte / xserver.nix
1 { pkgs, config, ... }:
2 let inherit (config.users) users; in
3 {
4 services.xserver = {
5 enable = true;
6 layout = "fr,us(altgr-intl)";
7 xkbOptions = "eurosign:e, compose:menu, grp:alt_space_toggle";
8 libinput.enable = true;
9 exportConfiguration = true; # link /usr/share/X11/ properly
10 desktopManager = {
11 session = [
12 # Let the session be generated by home-manager
13 {
14 name = "home-manager";
15 start = ''
16 ${pkgs.runtimeShell} $HOME/.hm-xsession &
17 waitPID=$!
18 '';
19 bgSupport = true;
20 }
21 ];
22 };
23 displayManager = {
24 defaultSession = "home-manager";
25 #defaultSession = "none+xmonad";
26 startx.enable = true;
27 #lightdm.enable = true;
28 #lightdm.greeter.enable = false;
29 #lightdm.greeters.tiny.enable = true;
30 autoLogin = {
31 enable = true;
32 user = users.julm.name;
33 };
34 };
35 };
36 environment.systemPackages = [
37 pkgs.arandr
38 ];
39 console.useXkbConfig = true;
40 sound.enable = true;
41 hardware.pulseaudio.enable = true;
42 /*
43 services.x2goserver = {
44 enable = true;
45 };
46 environment.sessionVariables = {
47 PATH = [ "/usr/local/bin" ];
48 };
49 services.xserver.displayManager.xserverArgs = [ "+iglx" ];
50 */
51 }