]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/losurdo/xserver.nix
nix: clean .direnv/ automatically
[sourcephile-nix.git] / hosts / losurdo / xserver.nix
1 { pkgs, lib, config, hostName, ... }:
2 let inherit (config.users) users; in
3 {
4 services.xserver = {
5 enable = true;
6 layout = "fr";
7 xkbOptions = "eurosign:e";
8 libinput.enable = true;
9 desktopManager = {
10 session = [
11 # Let the session be generated by home-manager
12 { name = "home-manager";
13 start = ''
14 ${pkgs.runtimeShell} $HOME/.hm-xsession &
15 waitPID=$!
16 '';
17 }
18 ];
19 };
20 displayManager = {
21 defaultSession = "home-manager";
22 #defaultSession = "none+xmonad";
23 autoLogin = {
24 enable = true;
25 user = users.julm.name;
26 };
27 };
28 };
29 sound.enable = true;
30 hardware.pulseaudio.enable = true;
31 /*
32 programs.x2goserver = {
33 enable = true;
34 };
35 environment.sessionVariables = {
36 PATH = [ "/usr/local/bin" ];
37 };
38 services.xserver.displayManager.xserverArgs = [ "+iglx" ];
39 */
40 }