33 lines
958 B
Nix
33 lines
958 B
Nix
{ pkgs, ... }: {
|
|
services.flatpak.enable = true;
|
|
|
|
# Auto-install flatpak-apps ved rebuild
|
|
system.activationScripts.flatpak = {
|
|
text = ''
|
|
FLATPAK="${pkgs.flatpak}/bin/flatpak"
|
|
|
|
# Tilføj flathub remote
|
|
$FLATPAK remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
|
|
# Installer apps (--or-update opdaterer hvis allerede installeret)
|
|
apps="
|
|
io.github.Faugus.faugus-launcher
|
|
com.adamcake.Bolt
|
|
com.notesnook.Notesnook
|
|
com.saivert.pwvucontrol
|
|
com.github.tchx84.Flatseal
|
|
org.kde.kdenlive
|
|
it.mijorus.gearlever
|
|
com.github.Matoking.protontricks
|
|
com.vysp3r.ProtonPlus
|
|
org.musicbrainz.Picard
|
|
io.github.radiolamp.mangojuice
|
|
"
|
|
|
|
for app in $apps; do
|
|
$FLATPAK install --noninteractive --or-update flathub "$app" 2>/dev/null || true
|
|
done
|
|
'';
|
|
description = "Install flatpak apps";
|
|
};
|
|
} |