change mkOption of mkEnableOption

This commit is contained in:
ulic-youthlic 2025-01-17 15:28:53 +08:00
parent 9d5f62c337
commit ae041d5988
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
7 changed files with 9 additions and 63 deletions

View file

@ -1,7 +1,6 @@
{ config, lib, ... }:
let
inherit (lib) mkOption mkIf mkMerge;
inherit (lib.types) bool;
inherit (lib) mkEnableOption mkIf mkMerge;
fish-cfg = config.youthlic.programs.fish;
bash-cfg = config.youthlic.programs.bash;
cfg-helper =
@ -20,24 +19,10 @@ in
options = {
youthlic.programs = {
fish = {
enable = mkOption {
type = bool;
default = true;
description = ''
whether to use fish shell
'';
example = false;
};
enable =mkEnableOption "fish";
};
bash = {
enable = mkOption {
type = bool;
default = true;
description = ''
whether to use bash shell
'';
example = false;
};
enable = mkEnableOption "bash";
};
};
};