]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/carotte/xserver.nix
losurdo: acme: move to LoadCredentialEncrypted=
[sourcephile-nix.git] / hosts / carotte / xserver.nix
1 { pkgs, lib, config, hostName, ... }:
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 { name = "home-manager";
14 start = ''
15 ${pkgs.runtimeShell} $HOME/.hm-xsession &
16 waitPID=$!
17 '';
18 bgSupport = true;
19 }
20 ];
21 };
22 displayManager = {
23 defaultSession = "home-manager";
24 #defaultSession = "none+xmonad";
25 startx.enable = true;
26 #lightdm.enable = true;
27 #lightdm.greeter.enable = false;
28 #lightdm.greeters.tiny.enable = true;
29 autoLogin = {
30 enable = true;
31 user = users.julm.name;
32 };
33 };
34 };
35 environment.systemPackages = [
36 pkgs.arandr
37 ];
38 console.useXkbConfig = true;
39 sound.enable = true;
40 hardware.pulseaudio.enable = true;
41 /*
42 services.x2goserver = {
43 enable = true;
44 };
45 environment.sessionVariables = {
46 PATH = [ "/usr/local/bin" ];
47 };
48 services.xserver.displayManager.xserverArgs = [ "+iglx" ];
49 */
50 }