zaneyos/config/system/flatpak.nix

15 lines
374 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
2024-02-06 07:56:13 +01:00
let inherit (import ../../options.nix) flatpak; in
lib.mkIf (flatpak == true) {
2024-02-06 07:56:13 +01:00
services.flatpak.enable = true;
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
'';
};
2024-02-06 07:56:13 +01:00
}