Skip to content

Commit

Permalink
nixos/services/flatpak: only create services when configured
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 22, 2024
1 parent 475d070 commit 6c5dfda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/nixos/services/flatpak/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ in
config = mkIf cfg.enable {
services.flatpak.enable = true;
systemd.services = {
flatpak-repos = {
flatpak-repos = lib.mkIf (cfg.extraRepos != { }) {

wantedBy = [ "multi-user.target" ];
path = [ pkgs.flatpak ];
script =
Expand All @@ -49,7 +50,7 @@ in
in
generateRepoScript cfg.extraRepos;
};
flatpak-refs = {
flatpak-refs = lib.mkIf (cfg.extraRefs != [ ]) {
wantedBy = [ "multi-user.target" ];
path = [ pkgs.flatpak ];
script =
Expand Down

0 comments on commit 6c5dfda

Please sign in to comment.