mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-19 21:49:52 -07:00
feat: declaratively install flatpak
This commit is contained in:
parent
8f86ce2201
commit
2b2c43ad06
7 changed files with 65 additions and 4 deletions
45
modules/linux/flatpak/default.nix
Normal file
45
modules/linux/flatpak/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
# 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue