modules: update to latest nixpkgs conventions

This commit is contained in:
Gabriel Arazas 2024-12-03 11:49:50 +08:00
parent 4626a4603c
commit 663322b348
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
4 changed files with 4 additions and 6 deletions

View File

@ -38,7 +38,7 @@ in
addons = lib.mkOption { addons = lib.mkOption {
type = with lib.types; listOf package; type = with lib.types; listOf package;
description = lib.mdDoc '' description = ''
List of packages providing Blender system resources at List of packages providing Blender system resources at
{file}`/share/blender` or at {file}`/share/blender/$MAJORMINORVERSION`. {file}`/share/blender` or at {file}`/share/blender/$MAJORMINORVERSION`.
''; '';

View File

@ -3,7 +3,7 @@
let let
cfg = config.programs.retroarch; cfg = config.programs.retroarch;
finalPkg = cfg.package.override { finalPkg = pkgs.wrapRetroArch {
inherit (cfg) cores settings; inherit (cfg) cores settings;
}; };
in in
@ -11,8 +11,6 @@ in
options.programs.retroarch = { options.programs.retroarch = {
enable = lib.mkEnableOption "configuring Retroarch"; enable = lib.mkEnableOption "configuring Retroarch";
package = lib.mkPackageOption pkgs "retroarch" { };
cores = lib.mkOption { cores = lib.mkOption {
type = with lib.types; listOf package; type = with lib.types; listOf package;
default = [ ]; default = [ ];

View File

@ -135,7 +135,7 @@ in
instances = lib.mkOption { instances = lib.mkOption {
type = with lib.types; attrsOf (submodule instanceType); type = with lib.types; attrsOf (submodule instanceType);
description = lib.mdDoc "Instances of Vouch proxy to be run."; description = "Instances of Vouch proxy to be run.";
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
{ {

View File

@ -36,7 +36,7 @@ in
addons = lib.mkOption { addons = lib.mkOption {
type = with lib.types; listOf package; type = with lib.types; listOf package;
description = lib.mdDoc '' description = ''
List of packages providing Blender system resources at List of packages providing Blender system resources at
{file}`/share/blender` or at {file}`/share/blender/$MAJORMINORVERSION`. {file}`/share/blender` or at {file}`/share/blender/$MAJORMINORVERSION`.
''; '';