This commit is contained in:
Dmitriy Kholkin 2022-08-18 20:22:52 +03:00
parent df75d3efe4
commit 71296f5a7d
2 changed files with 120 additions and 115 deletions

View File

@ -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"

View File

@ -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;
}; };
}; };
};
} }