carotte: cross-compile more the graphical profile
[sourcephile-nix.git] / hosts / losurdo / xserver.nix
index f59d30157fd8c491269146b89afa569c836d74fe..67ab5484ec1a1655451785aa4fdcefceafc6d932 100644 (file)
@@ -1,40 +1,22 @@
-{ pkgs, lib, config, hostName, ... }:
-let inherit (config.users) users; in
+{ config, inputs, ... }:
 {
-services.xserver = {
-  enable = true;
-  layout = "fr";
-  xkbOptions = "eurosign:e";
-  libinput.enable = true;
-  desktopManager = {
-    session = [
-      # Let the session be generated by home-manager
-      { name = "home-manager";
-        start = ''
-          ${pkgs.runtimeShell} $HOME/.hm-xsession &
-          waitPID=$!
-        '';
-      }
-    ];
-  };
-  displayManager = {
-    defaultSession = "home-manager";
-    #defaultSession = "none+xmonad";
-    autoLogin = {
-      enable = true;
-      user = users.julm.name;
+  imports = [
+    (inputs.julm-nix + "/nixos/profiles/printing.nix")
+    (inputs.julm-nix + "/nixos/profiles/graphical.nix")
+  ];
+  services.xserver = {
+    enable = true;
+    displayManager = {
+      defaultSession = "home-manager";
+      #defaultSession = "none+xmonad";
+      autoLogin.user = config.users.users."julm".name;
     };
   };
-};
-sound.enable = true;
-hardware.pulseaudio.enable = true;
-/*
-programs.x2goserver = {
-  enable = true;
-};
-environment.sessionVariables = {
-  PATH = [ "/usr/local/bin" ];
-};
-services.xserver.displayManager.xserverArgs = [ "+iglx" ];
-*/
+  services.x2goserver.enable = true;
+  /*
+    environment.sessionVariables = {
+    PATH = [ "/usr/local/bin" ];
+    };
+    services.xserver.displayManager.xserverArgs = [ "+iglx" ];
+  */
 }