mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Switch to hyprland
This commit is contained in:
parent
9a00e77cce
commit
90781bbed0
5 changed files with 266 additions and 21 deletions
|
|
@ -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";
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue