mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-02 03:23:08 +01:00
15 lines
374 B
Nix
15 lines
374 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let inherit (import ../../options.nix) flatpak; in
|
|
lib.mkIf (flatpak == true) {
|
|
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
|
|
'';
|
|
};
|
|
}
|