From d329b98f69f7dcae87e662501fde54daddec0d14 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Wed, 6 Mar 2024 10:12:53 -0600 Subject: [PATCH] Disable X11. Enable Wayland/Hyprland. --- nixos/durincore/configuration.nix | 38 ++++++++++++++++--------------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/nixos/durincore/configuration.nix b/nixos/durincore/configuration.nix index 25629ef..657efff 100644 --- a/nixos/durincore/configuration.nix +++ b/nixos/durincore/configuration.nix @@ -16,23 +16,28 @@ networkmanager.enable = true; }; - # Enable the X11 windowing system. - services.xserver.enable = true; - - # Enable the GNOME Desktop Environment. - services.xserver.displayManager.gdm.enable = true; - services.xserver.desktopManager.gnome.enable = true; - - services.gnome.gnome-keyring.enable = true; - security.pam.services.jahanson.enableGnomeKeyring = true; - programs.seahorse.enable = true; - - # Configure keymap in X11 - services.xserver = { - layout = "us"; - xkbVariant = ""; + programs.hyprland.enable = true; + environment.sessionVariables = { + NIXOS_OZONE_WL = "1"; }; + # # Enable the X11 windowing system. + # services.xserver.enable = true; + + # # Enable the GNOME Desktop Environment. + # services.xserver.displayManager.gdm.enable = true; + # services.xserver.desktopManager.gnome.enable = true; + + # services.gnome.gnome-keyring.enable = true; + # security.pam.services.jahanson.enableGnomeKeyring = true; + # programs.seahorse.enable = true; + + # # Configure keymap in X11 + # services.xserver = { + # layout = "us"; + # xkbVariant = ""; + # }; + # Enable CUPS to print documents. services.printing.enable = true; @@ -53,9 +58,6 @@ #media-session.enable = true; }; - # Enable touchpad support (enabled default in most desktopManager). - # services.xserver.libinput.enable = true; - # Some programs need SUID wrappers, can be configured further or are # started in user sessions. programs.gnupg.agent = {