From 8c4d5bd1a138b5fc199c49411e5656b1c52f4052 Mon Sep 17 00:00:00 2001 From: Giang Nguyen Date: Tue, 16 Jul 2024 12:33:15 +0700 Subject: [PATCH] use mkEnableOption --- modules/programs/nnn.nix | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/modules/programs/nnn.nix b/modules/programs/nnn.nix index 768cb66a..87308be3 100644 --- a/modules/programs/nnn.nix +++ b/modules/programs/nnn.nix @@ -105,37 +105,19 @@ in { default = { }; }; - enableBashIntegration = mkOption { + enableBashIntegration = mkEnableOption "Bash integration" // { default = true; - type = types.bool; - description = '' - Whether to enable Bash integration. - ''; }; - enableZshIntegration = mkOption { + enableZshIntegration = mkEnableOption "Zsh integration" // { default = true; - type = types.bool; - description = '' - Whether to enable Zsh integration. - ''; }; - enableFishIntegration = mkOption { + enableFishIntegration = mkEnableOption "Fish integration" // { default = true; - type = types.bool; - description = '' - Whether to enable Fish integration. - ''; }; - quitcd = mkOption { - default = false; - type = types.bool; - description = '' - Whether to enable cd on quit. - ''; - }; + quitcd = mkEnableOption "cd on quit" // { default = true; }; }; };