treewide: use mkEnableOption with overrides over mkOption

This commit is contained in:
Elec3137 2026-02-27 10:13:29 -08:00
commit 710db7b0d5
3 changed files with 4 additions and 11 deletions

View file

@ -13,11 +13,8 @@ in
options.nixowos.cli.${name} = {
enable = lib.mkEnableOption name;
delta.enable = lib.mkOption {
delta.enable = lib.mkEnableOption "delta within git" // {
default = true;
example = false;
description = "Whether to enable delta within git.";
type = lib.types.bool;
};
};

View file

@ -15,11 +15,9 @@ in
package = lib.mkPackageOption pkgs name { };
useFullFFmpeg = lib.mkOption {
type = lib.types.bool;
default = false;
useFullFFmpeg = lib.mkEnableOption "ffmpeg-full within mpv" // {
description = ''
Use pkgs.ffmpeg-full within mpv, for more media support.
Whether to use pkgs.ffmpeg-full within mpv, for more media support.
For instance, this makes jxl viewing and screenshots possible.
However, this will (almost certainly) require a local compilation of mpv

View file

@ -13,9 +13,7 @@ in
options.nixowos.graphical.${name} = {
enable = lib.mkEnableOption name;
startOnFirstTTY = lib.mkOption {
type = lib.types.bool;
default = false;
startOnFirstTTY = lib.mkEnableOption "starting plasma from tty1" // {
description = ''
Whether to start ${name} automatically from tty1.