]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/carotte/xserver.nix
mermet: radicle: fix publicKey old config name
[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 };
24 services.displayManager = {
25 defaultSession = "home-manager";
26 #defaultSession = "none+xmonad";
27 startx.enable = true;
28 #lightdm.enable = true;
29 #lightdm.greeter.enable = false;
30 #lightdm.greeters.tiny.enable = true;
31 autoLogin = {
32 enable = true;
33 user = users.julm.name;
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 }