more updates
This commit is contained in:
parent
a143d3ab56
commit
65657702af
5 changed files with 129 additions and 25 deletions
53
flake.lock
generated
53
flake.lock
generated
|
|
@ -21,6 +21,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"fonts": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1759511756,
|
||||||
|
"narHash": "sha256-auYJCZ7lOOIx7Zu4jeyXNczBxVVCWlFHVD7nnVQ0PCQ=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "ebf1959cd6ec64320f372383ea8d19157cbf7e01",
|
||||||
|
"revCount": 3,
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://git@github.com/barrettruth/fonts.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://git@github.com/barrettruth/fonts.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manager": {
|
"home-manager": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -28,11 +44,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769397130,
|
"lastModified": 1770491427,
|
||||||
"narHash": "sha256-TTM4KV9IHwa181X7afBRbhLJIrgynpDjAXJFMUOWfyU=",
|
"narHash": "sha256-8b+0vixdqGnIIcgsPhjdX7EGPdzcVQqYxF+ujjex654=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "c37679d37bdbecf11bbe3c5eb238d89ca4f60641",
|
"rev": "cbd8a72e5fe6af19d40e2741dc440d9227836860",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -69,11 +85,11 @@
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770336287,
|
"lastModified": 1770509107,
|
||||||
"narHash": "sha256-czvrg8uyf2VWRmbobsthTAIJCg1GH4mEekyW01AvHco=",
|
"narHash": "sha256-YsfKRbd5fbcb2VTxywzAGpc4txXApMXfG0vtxEldt7Q=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "neovim-nightly-overlay",
|
"repo": "neovim-nightly-overlay",
|
||||||
"rev": "1cd999cdf20536ac6a6d1aa17ba0242eefd2312b",
|
"rev": "0bb52596f3ea543781d2c20b1c2ee495a174a7d5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -85,11 +101,11 @@
|
||||||
"neovim-src": {
|
"neovim-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770334851,
|
"lastModified": 1770505476,
|
||||||
"narHash": "sha256-FvT3T0l8eNr1Hv+D1Sj1jM/2vLkonLxpadTk6gdYHAo=",
|
"narHash": "sha256-HvlTxVEso/hl9lwweHerBRLtI/q05SQTxDr2l0Njfig=",
|
||||||
"owner": "neovim",
|
"owner": "neovim",
|
||||||
"repo": "neovim",
|
"repo": "neovim",
|
||||||
"rev": "db133879b2a115cdf982b2899f154f1851d59a60",
|
"rev": "ed8fbd2e2992cb264cb62585098a1c7acc5c4585",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -115,11 +131,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770169770,
|
"lastModified": 1770380644,
|
||||||
"narHash": "sha256-awR8qIwJxJJiOmcEGgP2KUqYmHG4v/z8XpL9z8FnT1A=",
|
"narHash": "sha256-P7dWMHRUWG5m4G+06jDyThXO7kwSk46C1kgjEWcybkE=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "aa290c9891fa4ebe88f8889e59633d20cc06a5f2",
|
"rev": "ae67888ff7ef9dff69b3cf0cc0fbfbcd3a722abe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -131,11 +147,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770169770,
|
"lastModified": 1770380644,
|
||||||
"narHash": "sha256-awR8qIwJxJJiOmcEGgP2KUqYmHG4v/z8XpL9z8FnT1A=",
|
"narHash": "sha256-P7dWMHRUWG5m4G+06jDyThXO7kwSk46C1kgjEWcybkE=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "aa290c9891fa4ebe88f8889e59633d20cc06a5f2",
|
"rev": "ae67888ff7ef9dff69b3cf0cc0fbfbcd3a722abe",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -163,6 +179,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"fonts": "fonts",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"neovim-nightly": "neovim-nightly",
|
"neovim-nightly": "neovim-nightly",
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
|
|
@ -176,11 +193,11 @@
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770382887,
|
"lastModified": 1770480420,
|
||||||
"narHash": "sha256-on4vg7ctpMPzKWcvXPtV095aal6KUPDSKV9+I8HhQtY=",
|
"narHash": "sha256-zm86JvwyurSk06eZD1/Cdc4eF84gWIxeOmBJ5iUxRHw=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "58aa8fb418e2853382d52453a6a7739125f2b8e0",
|
"rev": "d1540a889b63da17f735f1d4bebd9ebfcd7c267a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
11
flake.nix
11
flake.nix
|
|
@ -10,9 +10,13 @@
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||||
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
|
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
|
||||||
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
||||||
|
fonts = {
|
||||||
|
url = "git+ssh://git@github.com/barrettruth/fonts.git";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, home-manager, nixos-hardware, neovim-nightly, zen-browser, ... }:
|
outputs = { nixpkgs, home-manager, nixos-hardware, neovim-nightly, zen-browser, fonts, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
|
@ -22,6 +26,7 @@
|
||||||
"claude-code"
|
"claude-code"
|
||||||
"nvidia-x11"
|
"nvidia-x11"
|
||||||
"nvidia-settings"
|
"nvidia-settings"
|
||||||
|
"apple_cursor"
|
||||||
];
|
];
|
||||||
overlays = [ neovim-nightly.overlays.default ];
|
overlays = [ neovim-nightly.overlays.default ];
|
||||||
};
|
};
|
||||||
|
|
@ -37,7 +42,7 @@
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.barrett = import ./home/home.nix;
|
home-manager.users.barrett = import ./home/home.nix;
|
||||||
home-manager.extraSpecialArgs = {
|
home-manager.extraSpecialArgs = {
|
||||||
inherit zen-browser system;
|
inherit zen-browser fonts system;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
@ -49,7 +54,7 @@
|
||||||
homeConfigurations.barrett = home-manager.lib.homeManagerConfiguration {
|
homeConfigurations.barrett = home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit zen-browser system;
|
inherit zen-browser fonts system;
|
||||||
};
|
};
|
||||||
modules = [ ./home/home.nix ];
|
modules = [ ./home/home.nix ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, config, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
|
|
@ -35,6 +35,11 @@
|
||||||
".claude/settings.local.json"
|
".claude/settings.local.json"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
signing = {
|
||||||
|
key = "A6C96C9349D2FC81";
|
||||||
|
signByDefault = true;
|
||||||
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
user = {
|
user = {
|
||||||
name = "Barrett Ruth";
|
name = "Barrett Ruth";
|
||||||
|
|
@ -92,4 +97,67 @@
|
||||||
prompt = "enabled";
|
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 -hc '#{pane_current_path}'
|
||||||
unbind \-; bind \- splitw -vc '#{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 v send -X begin-selection
|
||||||
bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -sel c'
|
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
|
let
|
||||||
palettes = {
|
palettes = {
|
||||||
|
|
@ -46,5 +46,17 @@ in {
|
||||||
readOnly = true;
|
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