feat: add develop environment for ruby

This commit is contained in:
Ryan Yin
2024-03-14 00:30:32 +08:00
parent bcc8d2302c
commit 4d3a3750c1
67 changed files with 54 additions and 31 deletions

View File

@@ -0,0 +1,14 @@
{
pkgs,
...
}: {
home.packages = with pkgs; [
# db related
dbeaver
mitmproxy # http/https proxy tool
insomnia # REST client
wireshark # network analyzer
ventoy # create bootable usb
];
}

View File

@@ -18,7 +18,6 @@
colmena # nixos's remote deployment tool
# db related
dbeaver
mycli
pgcli
mongosh
@@ -47,11 +46,6 @@
# need to run `conda-shell` before using command `conda`
# conda is not available for MacOS
conda
mitmproxy # http/https proxy tool
insomnia # REST client
wireshark # network analyzer
ventoy # create bootable usb
];
programs = {

View File

@@ -0,0 +1,3 @@
{mylib, ...}: {
imports = mylib.scanPaths ./.;
}

View File

@@ -2,8 +2,9 @@
imports =
(mylib.scanPaths ./.)
++ [
../base/server
../base/desktop
../base/core.nix
../base/core
../base/tui
../base/gui
../base/home.nix
];
}

8
home/linux/core.nix Normal file
View File

@@ -0,0 +1,8 @@
{
imports = [
../base/core
../base/home.nix
./base
];
}

View File

@@ -1,10 +0,0 @@
{
imports = [
../base/server
../base/desktop
../base/core.nix
./base
./desktop
];
}

11
home/linux/gui.nix Normal file
View File

@@ -0,0 +1,11 @@
{
imports = [
../base/core
../base/tui
../base/gui
../base/home.nix
./base
./desktop
];
}

View File

@@ -1,8 +0,0 @@
{
imports = [
../base/server
../base/core.nix
./base
];
}

10
home/linux/tui.nix Normal file
View File

@@ -0,0 +1,10 @@
{
imports = [
../base/core
../base/tui
../base/home.nix
./base
./desktop
];
}

View File

@@ -22,7 +22,7 @@
];
home-modules = map mylib.relativeToRoot [
# common
"home/linux/desktop.nix"
"home/linux/gui.nix"
# host specific
"hosts/12kingdoms-${name}/home.nix"
];

View File

@@ -22,7 +22,7 @@
];
home-modules = map mylib.relativeToRoot [
# common
"home/linux/desktop.nix"
"home/linux/gui.nix"
# host specific
"hosts/idols-${name}/home.nix"
];

View File

@@ -29,7 +29,7 @@
{modules.secrets.server.operation.enable = true;}
];
home-modules = map mylib.relativeToRoot [
"home/linux/server.nix"
"home/linux/tui.nix"
];
};

View File

@@ -28,7 +28,7 @@
{modules.secrets.server.kubernetes.enable = true;}
];
home-modules = map mylib.relativeToRoot [
"home/linux/server.nix"
"home/linux/core.nix"
];
};