From e404fb073c102d73e31971b511a33a399b84a004 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Wed, 1 Jan 2025 05:40:14 -0800 Subject: [PATCH] snowhawk: flatpak enable --- hosts/snowhawk/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/snowhawk/configuration.nix b/hosts/snowhawk/configuration.nix index 2c5216d..e4ed7ea 100644 --- a/hosts/snowhawk/configuration.nix +++ b/hosts/snowhawk/configuration.nix @@ -74,6 +74,18 @@ useGlobalPkgs = true; }; + services.flatpak.enable = true; + xdg.portal.enable = true; + xdg.portal.config.common.default = "*"; + xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; + systemd.services.flatpak-repo = { + wantedBy = [ "multi-user.target" ]; + path = [ pkgs.flatpak ]; + script = '' + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + ''; + }; + environment.systemPackages = with pkgs; [ neovim curl