fixing flatpak-repo

This commit is contained in:
2025-07-10 13:30:55 +02:00
parent 7a5a78424a
commit 80b4042e19
2 changed files with 59 additions and 54 deletions

View File

@@ -16,13 +16,18 @@ in {
gnome-software
];
systemd.services.flatpak-repo = {
wantedBy = ["multi-user.target"];
requires = ["network-online.target"];
description = "Add flathub repository";
after = ["network-online.target"];
wants = ["network-online.target"];
path = [pkgs.flatpak];
script = ''
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
'';
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo";
Restart = "on-failure";
RestartSec = "5s";
};
wantedBy = ["multi-user.target"];
};
};
}