liminalOS/modules/linux/flatpak/default.nix
Youwen Wu 2b2c43ad06
Some checks failed
Check flake / check (push) Has been cancelled
feat: declaratively install flatpak
2024-12-08 16:43:13 -08:00

45 lines
1.1 KiB
Nix

# NOTE: this module is IMPURE. Flatpaks are declaratively specified but not
# versioned. Therefore, they are not included in generational rollbacks and
# persist between generations. This is not ideal, but at least it is a better
# situation than imperative installation
{ inputs, ... }:
{
imports = [
inputs.nix-flatpak.nixosModules.nix-flatpak
];
services.flatpak = {
enable = true;
overrides = {
global = {
Context.sockets = [
"wayland"
"!x11"
"!fallback-x11"
];
Environment = {
# Fix un-themed cursor in some Wayland apps
XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons";
};
};
};
update.auto = {
enable = true;
onCalendar = "weekly";
};
packages = [
{
flatpakref = "https://sober.vinegarhq.org/sober.flatpakref";
sha256 = "sha256:1pj8y1xhiwgbnhrr3yr3ybpfis9slrl73i0b1lc9q89vhip6ym2l";
}
{
appId = "org.vinegarhq.Sober";
origin = "sober";
}
];
};
}