nixos/services.flatpak: remove with lib;
This commit is contained in:
parent
fe453fb99f
commit
b7a963841c
@ -1,8 +1,5 @@
|
|||||||
# flatpak service.
|
# flatpak service.
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.flatpak;
|
cfg = config.services.flatpak;
|
||||||
in {
|
in {
|
||||||
@ -14,15 +11,15 @@ in {
|
|||||||
###### interface
|
###### interface
|
||||||
options = {
|
options = {
|
||||||
services.flatpak = {
|
services.flatpak = {
|
||||||
enable = mkEnableOption "flatpak";
|
enable = lib.mkEnableOption "flatpak";
|
||||||
|
|
||||||
package = mkPackageOption pkgs "flatpak" { };
|
package = lib.mkPackageOption pkgs "flatpak" { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
config = mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
assertions = [
|
assertions = [
|
||||||
{ assertion = (config.xdg.portal.enable == true);
|
{ assertion = (config.xdg.portal.enable == true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user