mess around with hyprland
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
wooting.enable = true;
|
||||
};
|
||||
graphical = {
|
||||
hyprland.enable = true;
|
||||
hyprland.videobridge.enable = true;
|
||||
audio.enable = true;
|
||||
code.enable = true;
|
||||
emulators.enable = true;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
code.enable = true;
|
||||
emulators.enable = true;
|
||||
gamemode.enable = true;
|
||||
hyprland.enable = true;
|
||||
games.enable = true;
|
||||
ime.enable = true;
|
||||
shared.enable = true;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
./gamemode.nix
|
||||
./games.nix
|
||||
./gnome.nix
|
||||
./hyprland.nix
|
||||
./ime.nix
|
||||
./lxqt.nix
|
||||
./noise-supression.nix
|
||||
|
||||
@@ -1,82 +1,87 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
patchedWaybar = pkgs.unstable.waybar.overrideAttrs (oldAttrs: {
|
||||
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
||||
});
|
||||
|
||||
#patchedHyprland = pkgs.hyprland.overrideAttrs (oldAttrs: {
|
||||
# version = "0.28.0";
|
||||
#});
|
||||
cfg = config.custom.graphical.hyprland;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import ../../home-manager/hyprland-settings.nix ({ user="${config.mainUser.name}"; pkgs = pkgs; layout = config.mainUser.layout; variant = config.mainUser.variant; }))
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
layout = config.mainUser.layout;
|
||||
xkbVariant = config.mainUser.variant;
|
||||
enable = true;
|
||||
displayManager = lib.mkIf (!config.services.xserver.displayManager.gdm.enable) {
|
||||
sddm.enable = true;
|
||||
};
|
||||
options.custom.graphical.hyprland = {
|
||||
enable = mkEnableOption "Enables hyprland";
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
# If your cursor becomes invisible
|
||||
#WLR_NO_HARDWARE_CURSORS = "1";
|
||||
# Hint electron apps to use wayland
|
||||
NIXOS_OZONE_WL = "1";
|
||||
WLR_NO_HARDWARE_CURSORS="1";
|
||||
#WLR_DRM_NO_ATOMIC="1";
|
||||
WLR_DRM_DEVICES = "/dev/dri/card0";
|
||||
options.custom.graphical.hyprland.videobridge = {
|
||||
enable = mkEnableOption "Enables xwaylandvideobridge for hyprland";
|
||||
};
|
||||
|
||||
hardware = {
|
||||
# Opengl
|
||||
opengl.enable = true;
|
||||
|
||||
# Most wayland compositors need this
|
||||
nvidia.modesetting.enable = true;
|
||||
|
||||
config = let
|
||||
patchedWaybar = pkgs.unstable.waybar.overrideAttrs (oldAttrs: { mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ]; });
|
||||
in mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
layout = config.mainUser.layout;
|
||||
xkbVariant = config.mainUser.variant;
|
||||
enable = true;
|
||||
displayManager = mkIf (!config.services.xserver.displayManager.gdm.enable) {
|
||||
sddm.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
# Hint electron apps to use wayland
|
||||
NIXOS_OZONE_WL = "1";
|
||||
WLR_NO_HARDWARE_CURSORS="1";
|
||||
#WLR_DRM_NO_ATOMIC="1";
|
||||
#WLR_DRM_DEVICES = "/dev/dri/card0";
|
||||
LIBVA_DRIVER_NAME="nvidia";
|
||||
# black screen :(
|
||||
#XDG_SESSION_TYPE = "wayland";
|
||||
GBM_BACKEND = "nvidia-drm";
|
||||
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
||||
WLR_RENDERER_ALLOW_SOFTWARE="1";
|
||||
};
|
||||
|
||||
hardware = {
|
||||
# Opengl
|
||||
opengl.enable = true;
|
||||
|
||||
# Most wayland compositors need this
|
||||
nvidia.modesetting.enable = true;
|
||||
};
|
||||
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = lib.mkDefault [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.hyprland;
|
||||
};
|
||||
|
||||
security.pam.services = {
|
||||
swaylock = {
|
||||
fprintAuth = false;
|
||||
text = ''
|
||||
auth include login
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
# hyprland stuff
|
||||
patchedWaybar
|
||||
dunst
|
||||
swww
|
||||
rofi-wayland
|
||||
libnotify
|
||||
networkmanagerapplet
|
||||
wayland
|
||||
wl-clipboard
|
||||
#qt5.qtwayland
|
||||
#qt6.qmake
|
||||
#qt6.qtwayland
|
||||
#waybar
|
||||
#xdg-desktop-portal-hyprland
|
||||
#xdg-desktop-portal-gtk
|
||||
#xdg-utils
|
||||
#xwayland
|
||||
];
|
||||
};
|
||||
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = lib.mkDefault [ pkgs.xdg-desktop-portal-gtk ];
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.hyprland;
|
||||
};
|
||||
|
||||
security.pam.services = {
|
||||
swaylock = {
|
||||
fprintAuth = false;
|
||||
text = ''
|
||||
auth include login
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
# hyprland stuff
|
||||
patchedWaybar
|
||||
dunst
|
||||
swww
|
||||
rofi-wayland
|
||||
libnotify
|
||||
networkmanagerapplet
|
||||
wayland
|
||||
wl-clipboard
|
||||
#qt5.qtwayland
|
||||
#qt6.qmake
|
||||
#qt6.qtwayland
|
||||
#waybar
|
||||
#xdg-desktop-portal-hyprland
|
||||
#xdg-desktop-portal-gtk
|
||||
#xdg-utils
|
||||
#xwayland
|
||||
];
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ in
|
||||
xkb.layout = config.mainUser.layout;
|
||||
xkb.variant = config.mainUser.variant;
|
||||
displayManager.sddm.enable = true;
|
||||
displayManager.sddm.settings.Wayland.SessionDir = "${pkgs.plasma5Packages.plasma-workspace}/share/wayland-sessions";
|
||||
#displayManager.sddm.settings.Wayland.SessionDir = "${pkgs.plasma5Packages.plasma-workspace}/share/wayland-sessions";
|
||||
#displayManager.sddm.wayland.enable = true;
|
||||
|
||||
libinput = {
|
||||
|
||||
Reference in New Issue
Block a user