diff --git a/hosts/callisto/default.nix b/hosts/callisto/default.nix index 1e5dd1a..56cc4cb 100644 --- a/hosts/callisto/default.nix +++ b/hosts/callisto/default.nix @@ -10,6 +10,7 @@ ../../modules/linux/fonts ../../modules/linux/greeter ../../modules/linux/core + ../../modules/linux/desktop-portal ../../overlays apple-silicon.nixosModules.apple-silicon-support diff --git a/hosts/demeter/default.nix b/hosts/demeter/default.nix index 63229d3..69f2b56 100644 --- a/hosts/demeter/default.nix +++ b/hosts/demeter/default.nix @@ -12,6 +12,7 @@ ../../modules/linux/greeter ../../modules/linux/core ../../modules/linux/hamachi + ../../modules/linux/desktop-portal ../../overlays catppuccin.nixosModules.catppuccin diff --git a/modules/linux/desktop-portal/default.nix b/modules/linux/desktop-portal/default.nix new file mode 100644 index 0000000..215c9c4 --- /dev/null +++ b/modules/linux/desktop-portal/default.nix @@ -0,0 +1,6 @@ +{pkgs, ...}: { + xdg.portal = { + enable = true; + extraPortals = with pkgs; [xdg-desktop-portal-hyprland xdg-desktop-portal-gtk]; + }; +} diff --git a/users/youwen/linux/hyprland/common.nix b/users/youwen/linux/hyprland/common.nix index 1145251..64f9959 100644 --- a/users/youwen/linux/hyprland/common.nix +++ b/users/youwen/linux/hyprland/common.nix @@ -351,10 +351,4 @@ after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display. }; }; - - xdg.portal = { - enable = true; - configPackages = [pkgs.xdg-desktop-portal-hyprland]; - extraPortals = [pkgs.xdg-desktop-portal-hyprland]; - }; } diff --git a/users/youwen/linux/packages/common-packages.nix b/users/youwen/linux/packages/common-packages.nix index 40d9421..c81c034 100644 --- a/users/youwen/linux/packages/common-packages.nix +++ b/users/youwen/linux/packages/common-packages.nix @@ -35,4 +35,6 @@ with pkgs; [ manga-tui gcc + + ryujinx ]