Flatpak: manage flatpak with nix-flatpak
This commit is contained in:
parent
6ca883ca0a
commit
1510694a4a
1 changed files with 6 additions and 14 deletions
|
|
@ -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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue