Switch to hyprland

This commit is contained in:
SebastianStork 2024-04-05 22:46:35 +02:00
parent 9a00e77cce
commit 90781bbed0
5 changed files with 266 additions and 21 deletions

View file

@ -1,17 +1,24 @@
{
inputs,
config,
pkgs,
lib,
...
}: {
options.myConfig.de.qtile.enable = lib.mkEnableOption "";
}: let
cfg = config.myConfig.de;
in {
options.myConfig.de = {
qtile.enable = lib.mkEnableOption "";
hyprland.enable = lib.mkEnableOption "";
};
config = lib.mkIf config.myConfig.de.qtile.enable {
services.xserver = {
enable = true;
config = lib.mkMerge [
(lib.mkIf cfg.qtile.enable {
services.xserver = {
enable = true;
windowManager.qtile.enable = true;
desktopManager.wallpaper.mode = "fill";
windowManager.qtile.enable = true;
desktopManager.wallpaper.mode = "fill";
xkb = {
layout = "de";
@ -34,10 +41,23 @@
};
};
xdg.portal = {
enable = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
config.common.default = "*";
};
};
xdg.portal = {
enable = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
config.common.default = "*";
};
})
(lib.mkIf cfg.hyprland.enable {
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
};
environment.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1";
};
})
];
}