nixos/flatpak: init

wip/yesman
Jan Tojnar 7 years ago
parent 556c40c0e2
commit e0a42d991c
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
  1. 1
      nixos/modules/module-list.nix
  2. 28
      nixos/modules/services/desktops/flatpak.nix

@ -214,6 +214,7 @@
./services/desktops/accountsservice.nix
./services/desktops/dleyna-renderer.nix
./services/desktops/dleyna-server.nix
./services/desktops/flatpak.nix
./services/desktops/geoclue2.nix
./services/desktops/pipewire.nix
./services/desktops/gnome3/at-spi2-core.nix

@ -0,0 +1,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"
];
};
}
Loading…
Cancel
Save