override hyprland in xdph

This commit is contained in:
Adithya 2024-03-06 22:19:14 +05:30
parent d2aba83a1c
commit 5c99a9b471
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -1,4 +1,8 @@
{ pkgs, ... }: { { config, pkgs, ... }:
let
hyprland = config.wayland.windowManager.hyprland.finalPackage;
in
{
imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ]; imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ];
home.stateVersion = "23.11"; home.stateVersion = "23.11";
@ -20,13 +24,17 @@
portal = { portal = {
enable = true; enable = true;
xdgOpenUsePortal = true; xdgOpenUsePortal = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-gnome xdg-desktop-portal-hyprland ]; extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-gnome
(xdg-desktop-portal-hyprland.override { inherit hyprland; })
];
config = { config = {
common = { common = {
default = [ "gtk" ]; default = [ "gtk" ];
}; };
}; };
configPackages = with pkgs; [ hyprland ]; configPackages = [ hyprland ];
}; };
userDirs.enable = true; userDirs.enable = true;