mirror of
https://github.com/Username404-59/Dotfiles-NixOS.git
synced 2026-07-03 12:58:07 +02:00
Add service to add flatpak repos for each user
This commit is contained in:
parent
3a4c56c579
commit
dec3e9b760
@ -66,6 +66,18 @@ in
|
||||
};
|
||||
|
||||
services.flatpak.enable = true;
|
||||
systemd.user.services.flatpak-repos = {
|
||||
after = [ "network.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = "yes";
|
||||
ExecStart = "${pkgs.bash}/bin/sh -c '" +
|
||||
"${pkgs.flatpak}/bin/flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && " +
|
||||
"${pkgs.flatpak}/bin/flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo" +
|
||||
"'";
|
||||
};
|
||||
wantedBy = [ "default.target" ];
|
||||
};
|
||||
|
||||
services.lact = {
|
||||
enable = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user