From 5fd4a788df2cc1f582a4b5268ab34ed556e9cf23 Mon Sep 17 00:00:00 2001 From: ryan4yin Date: Mon, 29 May 2023 16:16:09 +0800 Subject: [PATCH] feat: add development tools into darwin --- home/common/development.nix | 6 ++---- home/darwin/default.nix | 1 + home/linux/common/development.nix | 36 +++++++++++++++++++++++++++++++ home/linux/wayland.nix | 1 + home/linux/x11.nix | 1 + 5 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 home/linux/common/development.nix diff --git a/home/common/development.nix b/home/common/development.nix index 85bab8c1..d8e51c02 100644 --- a/home/common/development.nix +++ b/home/common/development.nix @@ -5,9 +5,8 @@ nil.packages."${pkgs.system}".default # nix language server # IDE - insomnia jetbrains.pycharm-community - # jetbrains.idea-community + jetbrains.idea-community # cloud native skopeo @@ -23,7 +22,6 @@ # cloud provider awscli - awscurl aws-iam-authenticator eksctl @@ -71,7 +69,7 @@ ])) # need to run `conda-install` before using it # need to run `conda-shell` before using command `conda` - conda + # conda # db related dbeaver diff --git a/home/darwin/default.nix b/home/darwin/default.nix index b468522e..8fee3bc8 100644 --- a/home/darwin/default.nix +++ b/home/darwin/default.nix @@ -6,6 +6,7 @@ ../common/alacritty.nix ../common/git.nix ../common/starship.nix + ../common/development.nix ./core.nix ]; diff --git a/home/linux/common/development.nix b/home/linux/common/development.nix new file mode 100644 index 00000000..8cf3d1da --- /dev/null +++ b/home/linux/common/development.nix @@ -0,0 +1,36 @@ +{config, pkgs, nil, ...}: + +{ + home.packages = with pkgs; [ + nil.packages."${pkgs.system}".default # nix language server + + # GUI IDE + insomnia # REST client + + # need to run `conda-install` before using it + # need to run `conda-shell` before using command `conda` + # conda is not available for MacOS + conda-shell + ]; + + programs = { + # modern vim + neovim = { + enable = true; + extraConfig = '' + set number relativenumber + ''; + }; + + direnv = { + enable = true; + nix-direnv.enable = true; + enableZshIntegration = true; + }; + }; + + # GitHub CLI tool + programs.gh = { + enable = true; + }; +} \ No newline at end of file diff --git a/home/linux/wayland.nix b/home/linux/wayland.nix index 8f734f61..4e7a883d 100644 --- a/home/linux/wayland.nix +++ b/home/linux/wayland.nix @@ -9,6 +9,7 @@ ./fcitx5 ./desktop + ./common/development.nix ./common/shell.nix ./common/ssh.nix ./common/system-tools.nix diff --git a/home/linux/x11.nix b/home/linux/x11.nix index 7b4d097a..47b3ed18 100644 --- a/home/linux/x11.nix +++ b/home/linux/x11.nix @@ -9,6 +9,7 @@ ./fcitx5 ./desktop + ./common/development.nix ./common/shell.nix ./common/ssh.nix ./common/system-tools.nix