-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathflatpak.nix
72 lines (64 loc) · 1.61 KB
/
flatpak.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
config,
lib,
inputs,
...
}: let
enable = builtins.elem "flatpak" config.apps.list;
in {
imports = [inputs.flatpak.nixosModules.nix-flatpak];
## Flatpak Configuration ##
config = lib.mkIf enable {
warnings = [
''
Flatpak app install isn't Generational
- Changes in package declaration will result in downloading them anew
''
];
xdg.portal.enable = true;
environment.persist.directories = ["/var/lib/flatpak"];
user.persist.directories = [".cache/flatpak" ".local/share/flatpak" ".var/app"];
services.flatpak = {
enable = true;
uninstallUnmanaged = true;
# Repositories
remotes = [
{
name = "flathub";
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
}
{
name = "flathub-beta";
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
}
];
# Package List
# Use `flatpak remote-info --log` to find commit revisions
packages = [
/*
{
appId = "";
origin = "";
commit = "";
}
*/
];
# Platform Integration
overrides.global = {
Context = {
sockets = ["wayland" "!x11" "fallback-x11"];
filesystems = ["~/.config/dconf:ro"];
};
Environment = {
DCONF_USER_CONFIG_DIR = ".config/dconf";
XCURSOR_PATH = "/run/host/user-share/icons:/run/host/share/icons";
};
};
# Package Updates
update = {
onActivation = false;
auto.enable = false;
};
};
};
}