Flatpak: manage flatpak with nix-flatpak

This commit is contained in:
Toast 2023-11-12 23:48:20 +01:00
parent 6ca883ca0a
commit 1510694a4a

View file

@ -1,20 +1,12 @@
{ config, pkgs, ... }: { config, pkgs, flakeSelf, ... }:
{ {
services.flatpak.enable = true; services.flatpak.enable = true;
/* home-manager = {
Create systemd service that adds flathub after getting network sharedModules = [{ imports = [ flakeSelf.inputs.nix-flatpak.homeManagerModules.nix-flatpak ]; }];
This adds it automatically, which avoids the whack ass way I was users.toast = {
doing that before services.flatpak.packages = [ "tv.plex.PlexDesktop" ];
*/ };
systemd.services.flathub-add = {
description = "Add flathub repo to system flatpak install";
script = "${pkgs.flatpak}/bin/flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo";
serviceConfig.Type = "oneshot";
wantedBy = [ "network-online.target" ];
# Run after networking is working
after = [ "NetworkManager-wait-online.service" ];
restartIfChanged = false;
}; };
} }