From f1207ea4663260eb60a819c8f437eb3b8621284d Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Tue, 27 Aug 2024 20:46:31 -0700 Subject: [PATCH] feat: add ryujinx --- hosts/callisto/default.nix | 1 + hosts/demeter/default.nix | 1 + modules/linux/desktop-portal/default.nix | 6 ++++++ users/youwen/linux/hyprland/common.nix | 6 ------ users/youwen/linux/packages/common-packages.nix | 2 ++ 5 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 modules/linux/desktop-portal/default.nix 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 ]