mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 07:31:03 +01:00
treewide: use mkPackageOption
Standardized interface to provide a consistent treewide experience.
This commit is contained in:
parent
579a71b948
commit
b24689a173
62 changed files with 91 additions and 413 deletions
|
|
@ -244,14 +244,9 @@ in {
|
|||
options.programs.vscode = {
|
||||
enable = lib.mkEnableOption "Visual Studio Code";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.vscode;
|
||||
defaultText = literalExpression "pkgs.vscode";
|
||||
example = literalExpression "pkgs.vscodium";
|
||||
description = ''
|
||||
Version of Visual Studio Code to install.
|
||||
'';
|
||||
package = lib.mkPackageOption pkgs "vscode" {
|
||||
example = "pkgs.vscodium";
|
||||
extraDescription = "Version of Visual Studio Code to install.";
|
||||
};
|
||||
|
||||
mutableExtensionsDir = mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue