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:
parent
556c40c0e2
commit
e0a42d991c
2 changed files with 29 additions and 0 deletions
|
@ -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
|
||||
|
|
28
nixos/modules/services/desktops/flatpak.nix
Normal file
28
nixos/modules/services/desktops/flatpak.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue