converted to having an enable for desktop envs
This commit is contained in:
parent
00554ce703
commit
51634b115a
2 changed files with 85 additions and 55 deletions
|
|
@ -1,31 +1,50 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
nvidiaPatches = true;
|
||||
xwayland.enable = true;
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.speccon18.desktop.hyprland;
|
||||
in {
|
||||
options.speccon18.desktop.hyprland = {
|
||||
enable = mkEnableOption "enables specs custom hyprland setup";
|
||||
};
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
# libsForQt5.polkit-kde-agent
|
||||
libsForQt5.qt5.qtwayland
|
||||
qt6.full
|
||||
qt6.qtwayland
|
||||
waybar
|
||||
swww
|
||||
pw-volume
|
||||
rofi-wayland
|
||||
libnotify
|
||||
mako
|
||||
xdg-desktop-portal-hyprland
|
||||
];
|
||||
sessionVariables = {
|
||||
WLR_NO_HARDWARE_CURSORS = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
config = mkIf cfg.enable {
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
nvidiaPatches = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
# libsForQt5.polkit-kde-agent
|
||||
libsForQt5.qt5.qtwayland
|
||||
qt6.full
|
||||
qt6.qtwayland
|
||||
waybar
|
||||
swww
|
||||
pw-volume
|
||||
rofi-wayland
|
||||
libnotify
|
||||
mako
|
||||
xdg-desktop-portal-hyprland
|
||||
];
|
||||
sessionVariables = {
|
||||
WLR_NO_HARDWARE_CURSORS = "1";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
};
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-hyprland
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
hardware = {
|
||||
opengl.enable = true;
|
||||
nvidia.modesetting.enable = true;
|
||||
};
|
||||
};
|
||||
hardware = {
|
||||
opengl.enable = true;
|
||||
nvidia.modesetting.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue