From 64374d77fcf6a6145776c3810ae9454f0cb0fc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bori?= Date: Tue, 10 Dec 2024 16:05:57 +0100 Subject: [PATCH] :package: Added the cursor editor --- modules/home/editors/code-cursor/default.nix | 20 ++++++++++++++++++++ modules/home/roles/development/default.nix | 1 + 2 files changed, 21 insertions(+) create mode 100644 modules/home/editors/code-cursor/default.nix diff --git a/modules/home/editors/code-cursor/default.nix b/modules/home/editors/code-cursor/default.nix new file mode 100644 index 0000000..9045cc4 --- /dev/null +++ b/modules/home/editors/code-cursor/default.nix @@ -0,0 +1,20 @@ +{ + pkgs, + config, + lib, + namespace, + ... +}: +let + inherit (lib) mkIf; + inherit (lib.${namespace}) mkBoolOpt; + + cfg = config.${namespace}.editors.code-cursor; +in +{ + options.${namespace}.editors.code-cursor = { + enable = mkBoolOpt false "Whether or not to enable code-cursor."; + }; + + config = mkIf cfg.enable { home.packages = with pkgs; [ code-cursor ]; }; +} diff --git a/modules/home/roles/development/default.nix b/modules/home/roles/development/default.nix index 7c8d6f8..11b58f3 100644 --- a/modules/home/roles/development/default.nix +++ b/modules/home/roles/development/default.nix @@ -21,6 +21,7 @@ in editors = { vscode = enabled; emacs = enabled; + code-cursor = enabled; }; cli = {