upload af nix configs
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user