mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
nixos/flatpak: add package option
this patch adds the `services.flatpak.package` option to allow overriding the package added by this module to `environment.systemPackages` and the likes. This is useful in scenarios where applications call the flatpak binary to query information like writable directories and there is a custom package returning different results from the vanilla binary. See https://github.com/crabdancing/nixpak-flatpak-wrapper
This commit is contained in:
parent
85bcad4a96
commit
af69223f46
@ -15,6 +15,8 @@ in {
|
||||
options = {
|
||||
services.flatpak = {
|
||||
enable = mkEnableOption "flatpak";
|
||||
|
||||
package = mkPackageOption pkgs "flatpak" { };
|
||||
};
|
||||
};
|
||||
|
||||
@ -28,16 +30,16 @@ in {
|
||||
}
|
||||
];
|
||||
|
||||
environment.systemPackages = [ pkgs.flatpak ];
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
security.polkit.enable = true;
|
||||
|
||||
fonts.fontDir.enable = true;
|
||||
|
||||
services.dbus.packages = [ pkgs.flatpak ];
|
||||
services.dbus.packages = [ cfg.package ];
|
||||
|
||||
systemd.packages = [ pkgs.flatpak ];
|
||||
systemd.tmpfiles.packages = [ pkgs.flatpak ];
|
||||
systemd.packages = [ cfg.package ];
|
||||
systemd.tmpfiles.packages = [ cfg.package ];
|
||||
|
||||
environment.profiles = [
|
||||
"$HOME/.local/share/flatpak/exports"
|
||||
|
Loading…
Reference in New Issue
Block a user