Installing Flatpak applications #
Using the nix-flatpak home-manager module we can install Flatpak applications declaratively. This ensures that including applications are installed upon each rebuild:
{
inputs,
...
}:
{
flake.modules.homeManager.firefox =
{
pkgs,
lib,
config,
...
}:
{
options = {
firefox.enable = lib.mkEnableOption "firefox web browser";
};
config = lib.mkIf config.firefox.enable {
services.flatpak.packages = [
{
appId = "org.mozilla.firefox";
origin = "flathub";
}
];
};
};
}