[sway] Adds sway as an option, with minimal config
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./sway.nix
|
||||
./audio.nix
|
||||
./hyprland.nix
|
||||
./nix.nix
|
||||
./rofi/rofi.nix
|
||||
./sway.nix
|
||||
../apps/element.nix
|
||||
../apps/discord.nix
|
||||
./terminal.nix
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
imports = [
|
||||
./swaync.nix
|
||||
];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
hyprlock # lock screen
|
||||
# swayidle # lock on idle
|
||||
@@ -37,6 +38,10 @@
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
extraOptions = [
|
||||
# Required for NVIDIA GPUs
|
||||
"--unsupported-gpu"
|
||||
];
|
||||
checkConfig = true;
|
||||
systemd = {
|
||||
enable = true;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user