diff --git a/modules/nixos/desktop.nix b/modules/nixos/desktop.nix index bb6afff3..9712063d 100644 --- a/modules/nixos/desktop.nix +++ b/modules/nixos/desktop.nix @@ -7,7 +7,6 @@ }: with lib; let cfgWayland = config.modules.desktop.wayland; - cfgXorg = config.modules.desktop.xorg; in { imports = [ ./base @@ -20,9 +19,6 @@ in { wayland = { enable = mkEnableOption "Wayland Display Server"; }; - xorg = { - enable = mkEnableOption "Xorg Display Server"; - }; }; config = mkMerge [ @@ -51,45 +47,5 @@ in { # fix https://github.com/ryan4yin/nix-config/issues/10 security.pam.services.swaylock = {}; }) - - (mkIf cfgXorg.enable { - #################################################################### - # NixOS's Configuration for Xorg Server - #################################################################### - - services = { - gvfs.enable = true; # Mount, trash, and other functionalities - tumbler.enable = true; # Thumbnail support for images - - xserver = { - enable = true; - displayManager = { - lightdm.enable = true; - autoLogin = { - enable = true; - user = myvars.username; - }; - # use a fake session to skip desktop manager - # and let Home Manager take care of the X session - defaultSession = "hm-session"; - }; - desktopManager = { - runXdgAutostartIfNone = true; - session = [ - { - name = "hm-session"; - manage = "window"; - start = '' - ${pkgs.runtimeShell} $HOME/.xsession & - waitPID=$! - ''; - } - ]; - }; - # Configure keymap in X11 - xkb.layout = "us"; - }; - }; - }) ]; }