[sway] Adds sway as an option, with minimal config
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./sway.nix
|
|
||||||
./audio.nix
|
./audio.nix
|
||||||
|
./hyprland.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
./rofi/rofi.nix
|
./rofi/rofi.nix
|
||||||
|
./sway.nix
|
||||||
../apps/element.nix
|
../apps/element.nix
|
||||||
../apps/discord.nix
|
../apps/discord.nix
|
||||||
./terminal.nix
|
./terminal.nix
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./swaync.nix
|
./swaync.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
hyprlock # lock screen
|
hyprlock # lock screen
|
||||||
# swayidle # lock on idle
|
# swayidle # lock on idle
|
||||||
@@ -37,6 +38,10 @@
|
|||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraOptions = [
|
||||||
|
# Required for NVIDIA GPUs
|
||||||
|
"--unsupported-gpu"
|
||||||
|
];
|
||||||
checkConfig = true;
|
checkConfig = true;
|
||||||
systemd = {
|
systemd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -42,15 +42,9 @@
|
|||||||
LC_TIME = "en_US.UTF-8";
|
LC_TIME = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable Ozone Wayland support in chromium and electron apps.
|
||||||
# You can disable this if you're only using the Wayland session.
|
# https://nixos.wiki/wiki/Wayland
|
||||||
services.xserver.enable = true;
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
services.displayManager.sddm = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
theme = "sddm-astronaut-theme";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Unlock the default keyring on login to hyprland
|
# Unlock the default keyring on login to hyprland
|
||||||
security.pam.services.hyprland.enableGnomeKeyring = true;
|
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
|
# Enable Hyprland so it shows up in the menu
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -70,6 +78,7 @@
|
|||||||
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||||
portalPackage =
|
portalPackage =
|
||||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||||
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
@@ -123,7 +132,6 @@
|
|||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vim
|
vim
|
||||||
sddm-astronaut
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
|||||||
Reference in New Issue
Block a user