nixos/modules/home/apps/flatpak/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2024-05-27 22:23:32 +02:00
{ config, pkgs, lib, nix-flatpak, ... }:
2024-05-25 00:51:55 +02:00
with lib;
let
2024-05-27 22:23:32 +02:00
cfg = config.homeModules.apps.flatpak;
2024-05-25 00:51:55 +02:00
in
{
2024-05-27 22:23:32 +02:00
imports = [ nix-flatpak.homeManagerModules.nix-flatpak ];
options.homeModules.apps.flatpak = {
2024-05-25 00:51:55 +02:00
enable = mkEnableOption ''
Enable flatpak with my custom configurations
'';
};
2024-05-27 22:23:32 +02:00
2024-05-25 00:51:55 +02:00
config = mkIf cfg.enable {
services.flatpak = {
enable = true;
update.onActivation = true;
packages = [
# Gaming
{ appId = "com.discordapp.Discord"; origin = "flathub"; }
{ appId = "com.valvesoftware.Steam"; origin = "flathub"; }
{ appId = "net.lutris.Lutris"; origin = "flathub"; }
# Pro
{ appId = "com.slack.Slack"; origin = "flathub"; }
{ appId = "com.skype.Client"; origin = "flathub"; }
{ appId = "org.mozilla.Thunderbird"; origin = "flathub"; }
{ appId = "ch.protonmail.protonmail-bridge"; origin = "flathub"; }
{ appId = "org.kde.neochat"; origin = "flathub"; }
# Loisir
{ appId = "com.spotify.Client"; origin = "flathub"; }
{ appId = "io.gitlab.news_flash.NewsFlash"; origin = "flathub"; }
{ appId = "org.videolan.VLC"; origin = "flathub"; }
{ appId = "com.obsproject.Studio"; origin = "flathub"; }
{ appId = "io.github.achetagames.epic_asset_manager"; origin = "flathub"; }
];
};
};
}