more updates
This commit is contained in:
parent
a143d3ab56
commit
65657702af
5 changed files with 129 additions and 25 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, config, ... }:
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
|
|
@ -35,6 +35,11 @@
|
|||
".claude/settings.local.json"
|
||||
];
|
||||
|
||||
signing = {
|
||||
key = "A6C96C9349D2FC81";
|
||||
signByDefault = true;
|
||||
};
|
||||
|
||||
settings = {
|
||||
user = {
|
||||
name = "Barrett Ruth";
|
||||
|
|
@ -92,4 +97,67 @@
|
|||
prompt = "enabled";
|
||||
};
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"github.com" = {
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
};
|
||||
"git-server" = {
|
||||
hostname = "git.barrettruth.com";
|
||||
user = "ec2-user";
|
||||
identityFile = "~/.ssh/git-keypair-old.pem";
|
||||
};
|
||||
"lightsail" = {
|
||||
hostname = "52.87.124.139";
|
||||
user = "ec2-user";
|
||||
identityFile = "~/.ssh/git-keypair.pem";
|
||||
extraOptions = {
|
||||
SetEnv = "TERM=xterm-256color";
|
||||
KexAlgorithms = "+curve25519-sha256";
|
||||
};
|
||||
};
|
||||
"uva-portal" = {
|
||||
hostname = "portal.cs.virginia.edu";
|
||||
user = "jxa9ev";
|
||||
identityFile = "~/.ssh/uva_key";
|
||||
};
|
||||
"uva-nvidia" = {
|
||||
hostname = "grasshopper02.cs.virginia.edu";
|
||||
user = "jxa9ev";
|
||||
proxyJump = "uva-portal";
|
||||
identityFile = "~/.ssh/uva_key";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.gpg.enable = true;
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 3600;
|
||||
maxCacheTtl = 7200;
|
||||
pinentryPackage = pkgs.pinentry-curses;
|
||||
};
|
||||
|
||||
home.activation.secretPermissions = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
if [ -d "${config.home.homeDirectory}/.ssh" ]; then
|
||||
$DRY_RUN_CMD chmod 700 "${config.home.homeDirectory}/.ssh"
|
||||
for f in "${config.home.homeDirectory}/.ssh/"*; do
|
||||
[ -f "$f" ] || continue
|
||||
[ -L "$f" ] && continue
|
||||
case "$f" in
|
||||
*.pub|*/known_hosts|*/known_hosts.old)
|
||||
$DRY_RUN_CMD chmod 644 "$f" ;;
|
||||
*)
|
||||
$DRY_RUN_CMD chmod 600 "$f" ;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if [ -d "${config.home.homeDirectory}/.gnupg" ]; then
|
||||
$DRY_RUN_CMD find "${config.home.homeDirectory}/.gnupg" -type d -exec chmod 700 {} +
|
||||
$DRY_RUN_CMD find "${config.home.homeDirectory}/.gnupg" -type f -exec chmod 600 {} +
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -356,7 +356,9 @@ in {
|
|||
unbind \'; bind \' splitw -hc '#{pane_current_path}'
|
||||
unbind \-; bind \- splitw -vc '#{pane_current_path}'
|
||||
|
||||
unbind y; bind y copy-mode
|
||||
unbind y; bind y if -F '#{pane_in_mode}' 'send q' 'copy-mode'
|
||||
unbind /; bind / if -F '#{pane_in_mode}' 'send q' 'copy-mode \; send /'
|
||||
unbind ?; bind ? if -F '#{pane_in_mode}' 'send q' 'copy-mode \; send ?'
|
||||
|
||||
bind -T copy-mode-vi v send -X begin-selection
|
||||
bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -sel c'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, ... }:
|
||||
{ lib, config, pkgs, fonts, ... }:
|
||||
|
||||
let
|
||||
palettes = {
|
||||
|
|
@ -46,5 +46,17 @@ in {
|
|||
readOnly = true;
|
||||
};
|
||||
|
||||
config.colors = palettes.${config.theme};
|
||||
config = {
|
||||
colors = palettes.${config.theme};
|
||||
|
||||
home.pointerCursor = {
|
||||
name = "macOS";
|
||||
package = pkgs.apple-cursor;
|
||||
size = 24;
|
||||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
};
|
||||
|
||||
home.file.".local/share/fonts".source = fonts;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue