From 617115d9d93caf815c650dd30a59404aac48becb Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 6 Sep 2024 16:09:14 +0200 Subject: [PATCH] Ensure Flathub is added as a repository --- modules/desk-os/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/desk-os/default.nix b/modules/desk-os/default.nix index 4061bb6..0cfa09b 100644 --- a/modules/desk-os/default.nix +++ b/modules/desk-os/default.nix @@ -201,4 +201,15 @@ qt.platformTheme = "qt5ct"; services.flatpak.enable = true; + systemd.services.ensure-flathub-remote = { + description = "Ensure Flathub is added as a flatpak remote repository"; + wantedBy = [ "multi-user.target" ]; + wants = [ "network-online.target" ]; + after = [ "network-online.target" ]; + serviceConfig = { + Type = "oneshot"; + User = "root"; + ExecStart = "${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo"; + }; + }; }