0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

nixos/flatpak: init

This commit is contained in:
Jan Tojnar 2017-12-31 05:10:15 +01:00
parent 556c40c0e2
commit e0a42d991c
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 29 additions and 0 deletions

View file

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

View file

@ -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"
];
};
}