From 04cb1b16548f1424e09a259635ac931e998c0ea7 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Mon, 20 Jan 2025 04:33:05 -0500 Subject: [PATCH] nixos/flatpak: format with nixfmt --- nixos/modules/services/desktops/flatpak.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/desktops/flatpak.nix b/nixos/modules/services/desktops/flatpak.nix index 766c252dbc4e..5756738c9fda 100644 --- a/nixos/modules/services/desktops/flatpak.nix +++ b/nixos/modules/services/desktops/flatpak.nix @@ -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."; } ];