]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/losurdo/xserver.nix
networking: add patate to wg-intra
[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,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 }
19 ];
20 };
21 displayManager = {
22 defaultSession = "home-manager";
23 #defaultSession = "none+xmonad";
24 autoLogin = {
25 enable = true;
26 user = users.julm.name;
27 };
28 };
29 };
30 environment.systemPackages = [
31 pkgs.arandr
32 ];
33 console.useXkbConfig = true;
34 sound.enable = true;
35 hardware.pulseaudio.enable = true;
36 services.x2goserver = {
37 enable = true;
38 };
39 /*
40 environment.sessionVariables = {
41 PATH = [ "/usr/local/bin" ];
42 };
43 services.xserver.displayManager.xserverArgs = [ "+iglx" ];
44 */
45 }