fix ssh
This commit is contained in:
parent
df75d3efe4
commit
71296f5a7d
@ -19,6 +19,14 @@ with config.deviceSpecific; {
|
|||||||
decrypted = "/root/.ssh/ssh-builder";
|
decrypted = "/root/.ssh/ssh-builder";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.ssh.extraConfig = ''
|
||||||
|
Host nix-builder
|
||||||
|
hostname 192.168.0.100
|
||||||
|
user alukard
|
||||||
|
identitiesOnly yes
|
||||||
|
identityFile ${config.secrets.ssh-builder.decrypted}
|
||||||
|
'';
|
||||||
|
|
||||||
home-manager.users.alukard = {
|
home-manager.users.alukard = {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -46,12 +54,6 @@ with config.deviceSpecific; {
|
|||||||
hostname = "192.168.0.100";
|
hostname = "192.168.0.100";
|
||||||
user = "alukard";
|
user = "alukard";
|
||||||
};
|
};
|
||||||
"nix-builder" = {
|
|
||||||
hostname = "192.168.0.100";
|
|
||||||
user = "alukard";
|
|
||||||
identitiesOnly = true;
|
|
||||||
identityFile = config.secrets.ssh-builder.decrypted;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"
|
Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
{ pkgs, config, inputs, ... }: {
|
{ pkgs, config, inputs, ... }: {
|
||||||
|
|
||||||
environment.pathsToLink = [ "/share/zsh" ];
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
environment.sessionVariables.SHELL = "zsh";
|
environment.sessionVariables.SHELL = "${pkgs.zsh}/bin/zsh";
|
||||||
home-manager.users.alukard.programs = {
|
home-manager.users.alukard = {
|
||||||
|
home.sessionVariables.SHELL = "${pkgs.zsh}/bin/zsh";
|
||||||
|
programs = {
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAutosuggestions = true;
|
enableAutosuggestions = true;
|
||||||
@ -123,4 +125,5 @@
|
|||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user