From 39e5d49a3684e243cb5d14895e905ceecb7755d8 Mon Sep 17 00:00:00 2001 From: Myned <dev@bjork.tech> Date: Tue, 1 Apr 2025 21:26:22 -0500 Subject: [PATCH] zed: use mkEnableOption in snippets --- options/custom/programs/zed/snippets/snippets.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/options/custom/programs/zed/snippets/snippets.json b/options/custom/programs/zed/snippets/snippets.json index d1f8fc3..c79da87 100644 --- a/options/custom/programs/zed/snippets/snippets.json +++ b/options/custom/programs/zed/snippets/snippets.json @@ -9,11 +9,11 @@ " ...", "}:", "with lib; let", - " cfg = config.custom.$1;", + " cfg = config.custom.$1.$2;", " hm = config.home-manager.users.\\${config.custom.username};", "in {", - " options.custom.$1 = {", - " enable = mkOption {default = false;};", + " options.custom.$1.$2 = {", + " enable = mkEnableOption \"$2\";", " };", "", " config = mkIf cfg.enable {", @@ -57,7 +57,7 @@ " cfg = config.custom.containers.$1;", "in {", " options.custom.containers.$1 = {", - " enable = mkOption {default = false;};", + " enable = mkEnableOption \"$1\";", " };", "", " config = mkIf cfg.enable {", @@ -125,10 +125,10 @@ " ...", "}:", "with lib; let", - " cfg = config.custom.$1;", + " cfg = config.custom.$1.$2;", "in {", - " options.custom.$1 = {", - " enable = mkOption {default = false;};", + " options.custom.$1.$2 = {", + " enable = mkEnableOption \"$2\";", " };", "", " config = mkIf cfg.enable {",