nixos/modules/desktop/flatpak.nix

26 lines
560 B
Nix
Raw Normal View History

2024-03-05 22:57:41 +01:00
{home-manager, ...}: {
2023-10-25 15:03:31 +02:00
# https://flatpak.org/setup/NixOS
2024-06-27 20:37:34 +02:00
# https://wiki.nixos.org/wiki/Flatpak
2023-10-25 15:03:31 +02:00
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 = [
2024-03-05 22:57:41 +01:00
{
directory = "/var/lib/flatpak";
user = "root";
group = "root";
mode = "0755";
}
2023-10-25 15:03:31 +02:00
];
};
}