fix(client): simply ssh-agent config and fix for wsl

This commit is contained in:
uku 2025-01-02 00:59:06 +01:00
parent 373e2dd386
commit f213c33012
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
3 changed files with 22 additions and 22 deletions

View file

@ -1,19 +1,23 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
{
imports = [
./common.nix
../programs/neovim
../programs/rust.nix
../programs/ssh-agent.nix
];
environment.systemPackages = with pkgs; [
ffmpeg-full
fastfetch
lazygit
nixd
];
environment = {
systemPackages = with pkgs; [
ffmpeg-full
fastfetch
lazygit
nixd
];
# fix for wsl, `prefer` does not work if your SSH_ASKPASS is empty/unset
variables.SSH_ASKPASS_REQUIRE = if config.programs.ssh.enableAskPassword then "prefer" else "never";
};
networking = {
useNetworkd = false;
@ -24,7 +28,10 @@
};
};
programs.nix-ld.enable = true;
programs = {
nix-ld.enable = true;
ssh.startAgent = true;
};
virtualisation.docker.enable = true;
}