mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/appstream: remove with lib;
This commit is contained in:
parent
3e0f69b8c9
commit
624f590fba
1 changed files with 3 additions and 5 deletions
|
@ -1,10 +1,8 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
appstream.enable = mkOption {
|
appstream.enable = lib.mkOption {
|
||||||
type = types.bool;
|
type = lib.types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to install files to support the
|
Whether to install files to support the
|
||||||
|
@ -13,7 +11,7 @@ with lib;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf config.appstream.enable {
|
config = lib.mkIf config.appstream.enable {
|
||||||
environment.pathsToLink = [
|
environment.pathsToLink = [
|
||||||
# per component metadata
|
# per component metadata
|
||||||
"/share/metainfo"
|
"/share/metainfo"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue