Not having a good time

This commit is contained in:
javif89 2025-08-09 04:50:24 -04:00
parent c5af71c22a
commit f94d3aeffc
5 changed files with 16 additions and 37 deletions

View File

@ -102,8 +102,23 @@
brave brave
neovim neovim
git git
openssh
]; ];
services.openssh = {
enable = true;
};
programs.ssh = {
startAgent = true;
extraConfig = "
Host myhost
Hostname gitgud.foo
Port 22
User javi
";
};
system.stateVersion = "25.05"; # Did you read the comment? system.stateVersion = "25.05"; # Did you read the comment?
nix.settings.experimental-features = [ nix.settings.experimental-features = [

View File

@ -6,7 +6,6 @@
{ {
imports = [ imports = [
./home/kitty.nix ./home/kitty.nix
./home/ssh.nix
./home/shell.nix ./home/shell.nix
./home/starship.nix ./home/starship.nix
./home/git.nix ./home/git.nix
@ -59,8 +58,6 @@
nodejs_22 nodejs_22
bun bun
# Util
# Media # Media
mpc mpc
]; ];

View File

@ -51,6 +51,7 @@
"$mod, SPACE, exec, wofi --show drun" "$mod, SPACE, exec, wofi --show drun"
"$mod SHIFT, s, togglespecialworkspace, comms" "$mod SHIFT, s, togglespecialworkspace, comms"
"$mod SHIFT, a, togglespecialworkspace, research"
"$mod SHIFT ALT, x, exec, hyprctl dispatch exit" "$mod SHIFT ALT, x, exec, hyprctl dispatch exit"
"SHIFT, Print, exec, grimblast copy area" "SHIFT, Print, exec, grimblast copy area"
"CTRL, Print, exec, grimblast copy active" "CTRL, Print, exec, grimblast copy active"

View File

@ -51,8 +51,6 @@
# Additional bash configuration # Additional bash configuration
bashrcExtra = '' bashrcExtra = ''
# Custom functions
# Project selector function (equivalent to your custom keybinding) # Project selector function (equivalent to your custom keybinding)
proj() { proj() {
if [ -d "$HOME/projects" ]; then if [ -d "$HOME/projects" ]; then

View File

@ -1,32 +0,0 @@
{ config, pkgs, ... }:
{
programs.ssh = {
enable = true;
addKeysToAgent = "yes";
};
services.ssh-agent.enable = true;
systemd.user.services."ssh-add-all-keys" = {
Unit = {
Description = "Add all SSH keys from ~/.ssh to ssh-agent";
After = [ "ssh-agent.service" ];
Requires = [ "ssh-agent.service" ];
# Skip running if there are no id_* keys:
ConditionPathExistsGlob = "%h/.ssh/id_*";
};
Service = {
Type = "oneshot";
ExecStart = ''
${pkgs.bash}/bin/bash -lc '${pkgs.openssh}/bin/ssh-add -q %h/.ssh/id_* 2>/dev/null || true'
'';
# Make it non-interactive (dont pop up askpass):
Environment = [
"SSH_ASKPASS=/bin/false"
"DISPLAY=ignored"
];
};
Install.WantedBy = [ "default.target" ];
};
}