fix(hyprland): use xdg-desktop-hyprland
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
07c169001f
commit
aacee2d4d7
2 changed files with 10 additions and 15 deletions
|
@ -16,8 +16,10 @@ in {
|
||||||
./security.nix
|
./security.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Needed for hycov fork
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
# Needed for hycov fork
|
||||||
gcc
|
gcc
|
||||||
pciutils
|
pciutils
|
||||||
];
|
];
|
||||||
|
@ -27,19 +29,10 @@ in {
|
||||||
gvfs.enable = true;
|
gvfs.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal = {
|
programs.hyprland = with hyprland.packages.${pkgs.system}; {
|
||||||
enable = true;
|
enable = true;
|
||||||
# FIXME: should I be using this?
|
package = default;
|
||||||
# xdgOpenUsePortal = true;
|
portalPackage = xdg-desktop-portal-hyprland;
|
||||||
|
|
||||||
config = {
|
|
||||||
common.default = ["gtk"];
|
|
||||||
hyprland.default = ["gtk" "hyprland"];
|
|
||||||
};
|
|
||||||
|
|
||||||
extraPortals = [
|
|
||||||
pkgs.xdg-desktop-portal-gtk
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# HOME-MANAGER CONFIG
|
# HOME-MANAGER CONFIG
|
||||||
|
@ -53,7 +46,9 @@ in {
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = hyprland.packages.${pkgs.system}.default;
|
package = config.programs.hyprland.finalPackage;
|
||||||
|
|
||||||
|
systemd.variables = ["-all"];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
env = let
|
env = let
|
||||||
|
|
|
@ -79,7 +79,7 @@ in {
|
||||||
addOpenGLRunpath.driverLink
|
addOpenGLRunpath.driverLink
|
||||||
libglvnd
|
libglvnd
|
||||||
]}"''} \
|
]}"''} \
|
||||||
--add-flags "--enable-features=UseOzonePlatform --ozone-platform=wayland"
|
--add-flags "--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland"
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue