Updates ssh and work config
This commit is contained in:
parent
48ea1e8876
commit
c98b5706ca
4 changed files with 38 additions and 3 deletions
|
|
@ -8,6 +8,8 @@
|
|||
home.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
GOPATH = "$HOME/go";
|
||||
JAVA_HOME = "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home";
|
||||
ANDROID_HOME = "$HOME/Library/Android/sdk";
|
||||
};
|
||||
|
||||
xdg.enable = true;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
xdg.enable = true;
|
||||
|
||||
imports = [
|
||||
./modules/ssh
|
||||
./modules/git
|
||||
./modules/fish
|
||||
./modules/atuin
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
enable = true;
|
||||
|
||||
functions = {
|
||||
# TODO: Add these two functions from work config
|
||||
cdr = '''';
|
||||
rr = '''';
|
||||
ff = ''
|
||||
set RG_PREFIX "rg --column --line-number --no-heading --color=always --smart-case "
|
||||
set INITIAL_QUERY "$argv"
|
||||
|
|
@ -49,9 +52,6 @@
|
|||
interactiveShellInit = ''
|
||||
fish_config theme choose "Rosé Pine"
|
||||
|
||||
set -gx JAVA_HOME /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home
|
||||
set -gx ANDROID_HOME /Users/dennis/Library/Android/sdk
|
||||
|
||||
set hn (prompt_hostname)
|
||||
set fish_cursor_default block blink
|
||||
set fish_cursor_insert line blink
|
||||
|
|
@ -74,8 +74,14 @@
|
|||
shellAbbrs = {
|
||||
lg = "lazygit";
|
||||
g = "git";
|
||||
gco = "git checkout";
|
||||
frc = "source ~/.config/fish/**/*.fish";
|
||||
t = "todo.sh";
|
||||
p = "pnpm";
|
||||
pa = "pnpm add";
|
||||
pad = "pnpm add -D";
|
||||
pi = "pnpm install";
|
||||
px = "pnpm dlx";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
26
home/modules/ssh/default.nix
Normal file
26
home/modules/ssh/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
addKeysToAgent = "yes";
|
||||
matchBlocks = {
|
||||
"dnsc-server" = {
|
||||
hostname = "100.103.199.4";
|
||||
user = "dennis";
|
||||
identityFile = "/Users/dennis/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
"dnsc-server-i" = {
|
||||
hostname = "192.168.178.69";
|
||||
user = "dennis";
|
||||
identityFile = "/Users/dennis/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
"dnsc-vps-sm" = {
|
||||
hostname = "100.65.82.77";
|
||||
user = "dennis";
|
||||
identityFile = "/Users/dennis/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue