mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/flatpak: format with nixfmt
This commit is contained in:
parent
ae96b31920
commit
04cb1b1654
1 changed files with 12 additions and 4 deletions
|
@ -1,8 +1,16 @@
|
|||
# flatpak service.
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.services.flatpak;
|
||||
in {
|
||||
in
|
||||
|
||||
{
|
||||
meta = {
|
||||
doc = ./flatpak.md;
|
||||
maintainers = pkgs.flatpak.meta.maintainers;
|
||||
|
@ -17,12 +25,12 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
###### implementation
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
assertions = [
|
||||
{ assertion = (config.xdg.portal.enable == true);
|
||||
{
|
||||
assertion = (config.xdg.portal.enable == true);
|
||||
message = "To use Flatpak you must enable XDG Desktop Portals with xdg.portal.enable.";
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue