Compare commits

...
10 Commits
Author SHA1 Message Date
jmug f8d4f6ef07 [macbook] Leaner brew list. 2026-04-02 22:04:56 -07:00
jmug f3d795f2c2 [vim] Add grug for search and replace. 2026-04-02 17:31:28 -07:00
jmug 5aa52b7107 [macbook] Add trilium notes. 2026-04-02 17:08:15 -07:00
jmug 96bc9b8b01 [nixbox] SSH updates. 2026-03-04 15:43:12 -08:00
jmug fe1c287242 [macbook] SSH updates. 2026-03-04 02:06:00 -08:00
jmug 5d608cecab [nixbox] Add homeserver and racknerd host configs. 2026-03-01 16:15:15 -08:00
jmug e8ca1e1ad6 [nixbox] Add dig. 2026-03-01 16:14:55 -08:00
jmug 371a5d3188 [nixbox] Interpolate home directory into shell aliases. 2026-03-01 13:49:24 -08:00
jmug 8e4d95e6f1 [chore] Indentation fixes. 2026-03-01 13:49:02 -08:00
jmug 7822bf6ff8 [chore] SSH config fixes for nixbox. 2026-03-01 13:48:50 -08:00
8 changed files with 82 additions and 50 deletions
@@ -6,6 +6,7 @@ local handlers = lsp.handlers
-- Space as leader. -- Space as leader.
vim.api.nvim_set_keymap('n', '<Space>', '<NOP>', {noremap = true, silent = true}) vim.api.nvim_set_keymap('n', '<Space>', '<NOP>', {noremap = true, silent = true})
vim.g.mapleader = ' ' vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Exit insert mode with ,h. -- Exit insert mode with ,h.
vim.api.nvim_set_keymap('i', ',m', '<ESC>', {noremap = true, silent = true}) vim.api.nvim_set_keymap('i', ',m', '<ESC>', {noremap = true, silent = true})
@@ -65,8 +66,9 @@ vim.api.nvim_set_keymap('n', '<Leader>bs', '<cmd>Telescope buffers<cr>',{})
-- Code actions. -- Code actions.
vim.api.nvim_set_keymap('n', '<Leader>ca', "<Cmd>lua vim.lsp.buf.code_action()<CR>",{silent = true, noremap = true}) vim.api.nvim_set_keymap('n', '<Leader>ca', "<Cmd>lua vim.lsp.buf.code_action()<CR>",{silent = true, noremap = true})
vim.api.nvim_set_keymap('x', '<Leader>ca', "<Cmd>lua vim.lsp.buf.range_code_action()<CR>",{silent = true, noremap = true}) vim.api.nvim_set_keymap('x', '<Leader>ca', "<Cmd>lua vim.lsp.buf.range_code_action()<CR>",{silent = true, noremap = true})
-- Flutter commands. -- Search and replace.
vim.api.nvim_set_keymap('n', '<Leader>fl', "<cmd>lua require('telescope').extensions.flutter.commands()<cr>",{silent = true, noremap = true}) vim.api.nvim_set_keymap('n', '<Leader>sr', ':GrugFar<cr>', {noremap = true, silent = true})
vim.api.nvim_set_keymap('n', '<Leader>rsr', ':GrugFarWithin<cr>', {noremap = true, silent = true})
-- Hover doc popup -- Hover doc popup
@@ -75,6 +75,7 @@ return require('packer').startup(function(use)
} }
use { "junegunn/fzf" } use { "junegunn/fzf" }
use { "junegunn/fzf.vim" } use { "junegunn/fzf.vim" }
use { "MagicDuck/grug-far.nvim" }
-- Diagnostics -- Diagnostics
+5 -4
View File
@@ -1,9 +1,10 @@
{ user, ... } : { { user, ... } : {
programs.ssh = { programs.ssh = {
enable = true; enable = true;
extraConfig = '' matchBlocks = {
Host * "*" = {
IdentityAgent ${user.homeDirectory}/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh identityAgent = "${user.homeDirectory}/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
''; };
};
}; };
} }
+1 -1
View File
@@ -1 +1 @@
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCLJj/fefApUkXp79YPPk1O2L6CW6kqISXSWWmR8+MX0wk3lQv1NUp1p87sE57i6aUcYMuba0U9y+ppQq603uOc= code@secretive.Marianos-MacBook-Pro-(2).local ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBLNJvauvfuOq5DUO0pnObq/8De1dW1ZM757sMGVvwLUHm48si4coYozbDISIe58Puc9uMkihvHSjNlZh0vMHoo= git@secretive.Marianos-MacBook-Pro-(2).local
+5 -3
View File
@@ -38,17 +38,19 @@
no_quarantine = true; no_quarantine = true;
}; };
taps = [
"agavra/tap"
];
brews = [ brews = [
"raylib"
"watchman" "watchman"
"vite" "vite"
"pipx" "pipx"
"codex" "codex"
"python@3.11" "python@3.11"
"glow" "glow"
"act"
"chromaprint" "chromaprint"
"libiconv" "libiconv"
"agavra/tap/tuicr"
]; ];
casks = [ casks = [
"ghostty" "ghostty"
@@ -68,7 +70,7 @@
"discord" "discord"
"claude-code" "claude-code"
"calibre" "calibre"
"rsyncui" "trilium-notes"
]; ];
}; };
+25 -2
View File
@@ -84,10 +84,28 @@ in {
}; };
programs.ssh = { programs.ssh = {
enableDefaultConfig = false;
matchBlocks = { matchBlocks = {
media = { "*" = {
forwardAgent = false;
addKeysToAgent = "no";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
homeserver = {
user = "jmug"; user = "jmug";
hostname = "192.168.8.241"; hostname = "100.122.244.59";
forwardAgent = true;
};
devbox = {
user = "jmug";
hostname = "100.102.140.44";
forwardAgent = true; forwardAgent = true;
}; };
handmade = { handmade = {
@@ -95,6 +113,11 @@ in {
hostname = "82.180.160.149"; hostname = "82.180.160.149";
forwardAgent = true; forwardAgent = true;
}; };
"racknerd" = {
user = "jmug";
hostname = "155.94.155.137";
addKeysToAgent = "yes";
};
}; };
}; };
-2
View File
@@ -241,11 +241,9 @@ in
services.gvfs.enable = true; services.gvfs.enable = true;
services.udisks2.enable = true; services.udisks2.enable = true;
# Enable the OpenSSH daemon.
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh = { services.openssh = {
enable = true; enable = true;
# ports = [ 69 ];
settings = { settings = {
PasswordAuthentication = false; PasswordAuthentication = false;
PermitRootLogin = "no"; PermitRootLogin = "no";
+36 -31
View File
@@ -84,6 +84,7 @@ in {
pkgs-unstable.opencode pkgs-unstable.opencode
pkgs-unstable.claude-code pkgs-unstable.claude-code
pkgs-unstable.openssl pkgs-unstable.openssl
pkgs-unstable.dig
# zig # zig
fastfetch fastfetch
fzf fzf
@@ -117,12 +118,10 @@ in {
programs.zsh = { programs.zsh = {
shellAliases = { shellAliases = {
# TODO BEGIN Interpolate the name of the host here. flakeconf = "nvim ${homeDirectory}/nixos/flake.nix";
# flakeconf = "sudo nvim /etc/nixos/flake.nix"; nosconf = "nvim ${homeDirectory}/nixos/hosts/nixbox/configuration.nix";
# nosconf = "sudo nvim /etc/nixos/hosts/devbox/configuration.nix"; homeconf = "nvim ${homeDirectory}/nixos/hosts/nixbox/home.nix";
# homeconf = "sudo nvim /etc/nixos/hosts/devbox/home.nix"; nvconf = "sudo nvim ${homeDirectory}/nixos/home-modules/explicit-configs/nvim/init.lua";
# nvconf = "sudo nvim /etc/nixos/home-modules/explicit-configs/nvim/init.lua";
# TODO END Interpolate the name of the host here.
rshellconf = "source ~/.zshrc"; rshellconf = "source ~/.zshrc";
# TODO: Interpolate the name of the host here. # TODO: Interpolate the name of the host here.
nrsw = "sudo nixos-rebuild switch --flake ${homeDirectory}/nixos#nixbox"; nrsw = "sudo nixos-rebuild switch --flake ${homeDirectory}/nixos#nixbox";
@@ -146,42 +145,48 @@ in {
services.ssh-agent.enable = true; services.ssh-agent.enable = true;
programs.ssh = { programs.ssh = {
enable = true; enable = true;
addKeysToAgent = "confirm"; enableDefaultConfig = false;
matchBlocks = { matchBlocks = {
"git" = { "*" = {
forwardAgent = false;
addKeysToAgent = "no";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
identityFile = [
"/home/jmug/.ssh/id_yubikey" # Auto updated symlik that matches all yubikeys.
"/home/jmug/.ssh/id_jmug" # Fallback key with passphrase.
];
};
git = {
host = "github.com"; host = "github.com";
user = "git"; user = "git";
identityFile = [ addKeysToAgent = "yes";
"/home/jmug/.ssh/id_yubikey" # Auto updated symlik that matches all yubikeys.
"/home/jmug/.ssh/id_jmug" # Fallback key with passphrase.
];
}; };
"forgejo" = { forgejo = {
host = "code.jmug.me"; host = "code.jmug.me";
user = "forgejo"; user = "forgejo";
identityFile = [ addKeysToAgent = "yes";
"/home/jmug/.ssh/id_yubikey" # Auto updated symlik that matches all yubikeys.
"/home/jmug/.ssh/id_jmug" # Fallback key with passphrase.
];
}; };
"tailscale-jmug" = { homeserver = {
user = "jmug"; user = "jmug";
hostname = "100.122.244.59"; hostname = "100.122.244.59";
identityFile = [ forwardAgent = true;
"/home/jmug/.ssh/id_yubikey" # Auto updated symlik that matches all yubikeys. };
"/home/jmug/.ssh/id_jmug" # Fallback key with passphrase. racknerd = {
]; user = "jmug";
hostname = "155.94.155.137";
};
handmade = {
user = "jmug";
hostname = "82.180.160.149";
}; };
}; };
# matchBlocks = {
# ws = {
# user = "aym";
# hostname = "73.118.150.68";
# port = 69;
# forwardAgent = true;
# identityFile = "/home/jmug/.ssh/id_ed25519";
# };
# };
}; };
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.