mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
24 lines
509 B
Nix
24 lines
509 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.myConfig.de.hyprland.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.de.hyprland.enable {
|
|
programs.hyprland.enable = true;
|
|
|
|
environment.sessionVariables = {
|
|
WLR_NO_HARDWARE_CURSORS = "1";
|
|
NIXOS_OZONE_WL = "1";
|
|
};
|
|
|
|
xdg.portal = {
|
|
enable = true;
|
|
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
|
};
|
|
|
|
services.gvfs.enable = true;
|
|
};
|
|
}
|