summary refs log tree commit diff
path: root/nixos/modules/services/desktops/flatpak.nix
blob: d191eeff990f2eb9d5c8c66ac3ca121ea42f5d65 (plain) (blame)
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
# flatpak service.
{ config, lib, pkgs, ... }:

with lib;

{
  ###### interface
  options = {
    services.flatpak = {
      enable = mkEnableOption "flatpak";
    };
  };


  ###### implementation
  config = mkIf config.services.flatpak.enable {
    environment.systemPackages = [ pkgs.flatpak ];

    services.dbus.packages = [ pkgs.flatpak ];

    systemd.packages = [ pkgs.flatpak ];

    environment.variables.PATH = [
      "$HOME/.local/share/flatpak/exports/bin"
      "/var/lib/flatpak/exports/bin"
    ];
  };
}