forked from javif89/nix
Not having a good time
This commit is contained in:
parent
c5af71c22a
commit
f94d3aeffc
@ -102,8 +102,23 @@
|
||||
brave
|
||||
neovim
|
||||
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?
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
|
3
home.nix
3
home.nix
@ -6,7 +6,6 @@
|
||||
{
|
||||
imports = [
|
||||
./home/kitty.nix
|
||||
./home/ssh.nix
|
||||
./home/shell.nix
|
||||
./home/starship.nix
|
||||
./home/git.nix
|
||||
@ -59,8 +58,6 @@
|
||||
nodejs_22
|
||||
bun
|
||||
|
||||
# Util
|
||||
|
||||
# Media
|
||||
mpc
|
||||
];
|
||||
|
@ -51,6 +51,7 @@
|
||||
"$mod, SPACE, exec, wofi --show drun"
|
||||
|
||||
"$mod SHIFT, s, togglespecialworkspace, comms"
|
||||
"$mod SHIFT, a, togglespecialworkspace, research"
|
||||
"$mod SHIFT ALT, x, exec, hyprctl dispatch exit"
|
||||
"SHIFT, Print, exec, grimblast copy area"
|
||||
"CTRL, Print, exec, grimblast copy active"
|
||||
|
@ -51,8 +51,6 @@
|
||||
|
||||
# Additional bash configuration
|
||||
bashrcExtra = ''
|
||||
# Custom functions
|
||||
|
||||
# Project selector function (equivalent to your custom keybinding)
|
||||
proj() {
|
||||
if [ -d "$HOME/projects" ]; then
|
||||
|
32
home/ssh.nix
32
home/ssh.nix
@ -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 (don’t pop up askpass):
|
||||
Environment = [
|
||||
"SSH_ASKPASS=/bin/false"
|
||||
"DISPLAY=ignored"
|
||||
];
|
||||
};
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user