mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
nixos/services.flatpak: remove with lib;
This commit is contained in:
parent
fe453fb99f
commit
b7a963841c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user