universedesktop: Back to Tiling™️

This commit is contained in:
2024-05-05 09:33:47 -04:00
parent f6629ce275
commit 29b0281c72
6 changed files with 58 additions and 29 deletions

View File

@@ -0,0 +1,13 @@
{ config, pkgs, lib, ... }: {
# Enable sound.
# rtkit is optional but recommended
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
# jack.enable = true;
};
}

View File

@@ -1,31 +1,6 @@
{ config, pkgs, lib, ... }: { { config, pkgs, lib, ... }: {
# Wayland support imports = [
hardware = { ./audio.nix
opengl.enable = true; ./displaymanager.nix
opengl.driSupport = true; ];
opengl.driSupport32Bit = true;
nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = false;
};
};
services.xserver.enable = true;
services.displayManager.sddm.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
programs.xwayland.enable = true;
# Configure keymap in X11
services.xserver.xkb.layout = "us";
# Enable sound.
# rtkit is optional but recommended
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
# jack.enable = true;
};
} }

View File

@@ -0,0 +1,19 @@
{ config, pkgs, lib, ... }: let
in {
imports = [
./dwl.nix
];
services.displayManager = {
enable = true;
execCmd = "${pkgs.lemurs}/bin/lemurs";
};
environment.etc."lemurs/wayland/dwl" = {
source = pkgs.writeScript "dwl-startup" ''
#!${pkgs.bash}/bin/bash
exec ${pkgs.dwl}/bin/dwl
'';
};
}

View File

@@ -0,0 +1,5 @@
{ config, pkgs, lib, ... }: {
imports = [
./wayland.nix
];
}

View File

@@ -0,0 +1,15 @@
{ config, pkgs, lib, ... }: {
# Wayland support
hardware = {
opengl.enable = true;
opengl.driSupport = true;
opengl.driSupport32Bit = true;
nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
open = false;
};
};
programs.xwayland.enable = true;
}

View File

@@ -1,6 +1,8 @@
{ lib, config, pkgs, ... }: { { lib, config, pkgs, ... }: {
# For steam # For steam
services.flatpak.enable = true; services.flatpak.enable = true;
## Flatpak requires this
xdg.portal.enable = true;
programs.steam.enable = true; programs.steam.enable = true;
# Game compat # Game compat
programs.gamemode.enable = true; programs.gamemode.enable = true;