Skip to content

Commit

Permalink
📦 Added the cursor editor
Browse files Browse the repository at this point in the history
  • Loading branch information
theobori committed Dec 10, 2024
1 parent 2ec6d70 commit 64374d7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/home/editors/code-cursor/default.nix
Original file line number Diff line number Diff line change
@@ -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 ]; };
}
1 change: 1 addition & 0 deletions modules/home/roles/development/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ in
editors = {
vscode = enabled;
emacs = enabled;
code-cursor = enabled;
};

cli = {
Expand Down

0 comments on commit 64374d7

Please sign in to comment.