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;
|
||||
|
||||
/*
|
||||
Create systemd service that adds flathub after getting network
|
||||
This adds it automatically, which avoids the whack ass way I was
|
||||
doing that before
|
||||
*/
|
||||
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;
|
||||
home-manager = {
|
||||
sharedModules = [{ imports = [ flakeSelf.inputs.nix-flatpak.homeManagerModules.nix-flatpak ]; }];
|
||||
users.toast = {
|
||||
services.flatpak.packages = [ "tv.plex.PlexDesktop" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue