nixos/modules/desktop/flatpak.nix
Pablo Ovelleiro Corral 2103ab9f6e
Update NixOS wiki link
2024-06-27 20:37:34 +02:00

26 lines
560 B
Nix

{home-manager, ...}: {
# https://flatpak.org/setup/NixOS
# https://wiki.nixos.org/wiki/Flatpak
services.flatpak.enable = true;
# Add desktop shortcuts for flatpak applications
home-manager.users.caspervk = {
home.sessionVariables = {
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share";
};
};
# Persist flatpaks
environment.persistence."/nix/persist" = {
directories = [
{
directory = "/var/lib/flatpak";
user = "root";
group = "root";
mode = "0755";
}
];
};
}