Ensure Flathub is added as a repository

This commit is contained in:
Michael Smith 2024-09-06 16:09:14 +02:00
parent d2137c9bde
commit 617115d9d9

View File

@ -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";
};
};
}