fix: grim(wayland): Failed to create image. https://github.com/ryan4yin/nix-config/issues/11

This commit is contained in:
Ryan Yin
2023-07-30 17:45:17 +08:00
parent 81a4104973
commit 26da19ba38
2 changed files with 11 additions and 3 deletions

View File

@@ -1,12 +1,12 @@
{pkgs, hyprland, catppuccin-hyprland, ...}: {
imports = [
hyprland.homeManagerModules.default
# hyprland.homeManagerModules.default
./anyrun.nix
./wayland-apps.nix
];
wayland.windowManager.hyprland.enable = true;
# wayland.windowManager.hyprland.enable = true;
# hyprland configs, based on https://github.com/notwidow/hyprland
home.file.".config/hypr" = {

View File

@@ -10,9 +10,17 @@
##########################################################################################################
imports = [
hyprland.nixosModules.default
# hyprland.nixosModules.default
];
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
];
};
environment.pathsToLink = ["/libexec"]; # links /libexec from derivations to /run/current-system/sw
services = {
gvfs.enable = true; # Mount, trash, and other functionalities