OPTION | DEFAULT | TYPE |
---|---|---|
enableModule | see below | bool |
flatpak-dir | see below | path or null |
packages | [] |
see below |
remotes | {} |
see below |
overrides | {} |
see below |
preRemotesCommand | null |
string or null |
preInstallCommand | null |
string or null |
preSwitchCommand | null |
string or null |
UNCHECKEDpostEverythingCommand | null |
string or null |
config.services.flatpak.enable
(If home-manager used as NixOS module: Value is read from NixOS host config)
Enable/disable this module.
If your NixOS config has services.flatpak.enable
set to true
, this module will be activated automatically.
Important
The home-manager module will try to read the value of services.flatpak.enable
from the NixOS host, it will never provide it's own services.flatpak.enable
option, you will have to set services.flatpak.enableModule
in your user config if you use home-manager as standalone.
null
Path where your flatpak installation is located.
By default will be:
/var/lib/flatpak
(for NixOS)~/.local/share/flatpak
(for home-manager)
If left at default value, the corresponding directory will be picked.
[]
[ "flathub:app/org.kde.index//stable" "flathub-beta:app/org.kde.kdenlive/x86_64/stable" ]
# out-of-tree flatpaks can be installed like this (note: they can't be a URL because flatpak doesn't like that)
[ ":${./foobar.flatpak}" "flathub:/root/testflatpak.flatpakref" ]
Which packages to install.
Use this format: <remote name>:<type>/<flatpak ref>/<arch>/<branch>:<commit>
Replace <remote-name>
with the remote name you want to install from.
Replace <type>
with either "runtime" or "app".
Replace <arch>
with the CPU architecture, may be omitted (but the slash needs to be kept)
Replace <branch-name
> with the name of the application branch.
Replace <commit>
with a given commit, or leave it out entirely
{}
{
"flathub" = "https://dl.flathub.org/repo/flathub.flatpakrepo";
"flathub-beta" = "https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo";
}
Declare flatpak remotes.
May only contain uppercase and lowercase ASCII characters and hyphens.
{}
services.flatpak.overrides = {
"global" = {
filesystems = [
"home"
];
sockets = [
"!x11"
"!fallback-x11"
];
};
"org.mozilla.Firefox" = {
environment = {
"MOZ_ENABLE_WAYLAND" = 1;
};
sockets = [
"!wayland"
"!fallback-x11"
"x11"
];
};
}
Overrides to apply.
Paths prefixed with '!' will deny read permissions for that path, also applies to sockets. Paths have to be escaped manually.
Note
If you want to apply overrides not supported in the module, do so by running the override commands in preSwitchCommand
Which commands to run before remoted are configured.
All essential variables have been initialized by now.
Which commands to run before refs are installed.
Which commands to run before the generation is activated.
Which commands to run after the script completed execution.
Caution
The error status of this command will NOT be checked. Errors that occur will NOT prevent the generation from being activated!