[sway] Adds sway as an option, with minimal config

This commit is contained in:
2025-04-16 11:05:24 -07:00
parent 8533f0c9cc
commit 1afddefdbf
3 changed files with 25 additions and 11 deletions

View File

@@ -42,15 +42,9 @@
LC_TIME = "en_US.UTF-8";
};
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
services.xserver.enable = true;
services.displayManager.sddm = {
enable = true;
theme = "sddm-astronaut-theme";
};
# Enable Ozone Wayland support in chromium and electron apps.
# https://nixos.wiki/wiki/Wayland
environment.sessionVariables.NIXOS_OZONE_WL = "1";
# Unlock the default keyring on login to hyprland
security.pam.services.hyprland.enableGnomeKeyring = true;
@@ -63,6 +57,20 @@
'';
};
# Enable the X11 windowing system and a display manager
services.xserver = {
enable = true;
displayManager.gdm = {
enable = true;
wayland = true;
};
# displayManager.sddm = {
# enable = true;
# wayland.enable = true;
# };
};
# services.displayManager.ly.enable = true;
# Enable Hyprland so it shows up in the menu
programs.hyprland = {
enable = true;
@@ -70,6 +78,7 @@
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage =
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
xwayland.enable = true;
};
# Configure keymap in X11
@@ -123,7 +132,6 @@
# $ nix search wget
environment.systemPackages = with pkgs; [
vim
sddm-astronaut
];
# Some programs need SUID wrappers, can be configured further or are