nixos/services.flatpak: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-27 20:43:04 +02:00
parent fe453fb99f
commit b7a963841c

View File

@ -1,8 +1,5 @@
# flatpak service.
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.flatpak;
in {
@ -14,15 +11,15 @@ in {
###### interface
options = {
services.flatpak = {
enable = mkEnableOption "flatpak";
enable = lib.mkEnableOption "flatpak";
package = mkPackageOption pkgs "flatpak" { };
package = lib.mkPackageOption pkgs "flatpak" { };
};
};
###### implementation
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
assertions = [
{ assertion = (config.xdg.portal.enable == true);