31 lines
550 B
Nix
31 lines
550 B
Nix
|
|
{
|
||
|
|
pkgs,
|
||
|
|
inputs,
|
||
|
|
config,
|
||
|
|
lib,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
|
||
|
|
{
|
||
|
|
options.hyprland = {
|
||
|
|
enable = lib.mkEnableOption "Hyprland";
|
||
|
|
};
|
||
|
|
|
||
|
|
config = lib.mkIf config.hyprland.enable {
|
||
|
|
programs.hyprland = {
|
||
|
|
enable = true;
|
||
|
|
#package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||
|
|
xwayland.enable = true;
|
||
|
|
};
|
||
|
|
|
||
|
|
xdg.portal = {
|
||
|
|
enable = true;
|
||
|
|
extraPortals = with pkgs; [
|
||
|
|
xdg-desktop-portal-gtk
|
||
|
|
];
|
||
|
|
};
|
||
|
|
|
||
|
|
# TODO: finish this (I didn't like the dotfiles I was getting inspo from and stopped)
|
||
|
|
};
|
||
|
|
}
|