From add81a71d512c698298d05995f5db652ebace040 Mon Sep 17 00:00:00 2001 From: jasmine Date: Fri, 26 Jul 2024 08:55:55 +0800 Subject: [PATCH] Install flatpak service --- nixos/fuchsia/services/default.nix | 1 + nixos/fuchsia/services/flatpak.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 nixos/fuchsia/services/flatpak.nix diff --git a/nixos/fuchsia/services/default.nix b/nixos/fuchsia/services/default.nix index 19481a1..3a52f17 100644 --- a/nixos/fuchsia/services/default.nix +++ b/nixos/fuchsia/services/default.nix @@ -3,5 +3,6 @@ { imports = [ ./amdgpu-clocks.nix + ./flatpak.nix ]; } diff --git a/nixos/fuchsia/services/flatpak.nix b/nixos/fuchsia/services/flatpak.nix new file mode 100644 index 0000000..974f133 --- /dev/null +++ b/nixos/fuchsia/services/flatpak.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: + +{ + # Required to install flatpak + xdg.portal = { + enable = true; + config.common.default = [ "gtk" ]; + extraPortals = [ pkgs.xdg-desktop-portal-wlr ]; + }; + + services.flatpak.enable = true; +}