Merge pull request #331993 from networkException/configurable-flatpak-package

nixos/flatpak: add package option
This commit is contained in:
Aleksana 2024-08-03 23:14:34 +08:00 committed by GitHub
commit 280d879751
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"