nixos-config/user/cursor/default.nix
2025-03-20 20:36:48 -03:00

21 lines
685 B
Nix

{
pkgs,
lib,
...
}:
{
options.cursor = {
enable = lib.mkEnableOption { };
};
config = lib.mkIf config.cursor.enable {
home.file = {
"${config.home.homeDirectory}/.local/share/applications/cursor.desktop".source = ./cursor.desktop;
"${config.home.homeDirectory}/.config/Cusor/User/keybindings.json".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/projects/nixos-config/user/cursor/keybindings.json";
"${config.home.homeDirectory}/.config/Cursor/User/settings.json".source =
config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/projects/nixos-config/user/cursor/settings.json";
};
};
}