Add initial legacy configuration
This commit is contained in:
parent
febfe1d970
commit
db07652d99
64 changed files with 3287 additions and 13 deletions
26
home-modules/applications/ssh.nix
Normal file
26
home-modules/applications/ssh.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.ssh =
|
||||
let
|
||||
forceIdentityPrivate = {
|
||||
identityFile = toString (
|
||||
pkgs.writeText "fabian.hauser@qo.is.pub" ''
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIPF8ZV7vhpbVvLxiKq8ANVusNUHMbtii5MuvjxCbVz7vSNVPo9OOLvYyDqhbRAWMTdQeGZVAaALBufKKmprDTRFMpnA7Ut4TFrdz/5DTaR2KEjJ7P75moH+0xooR/GsbzFGsNBSQSXK3u1igndPYEC/PqCHN++32kDo2wLqTB4VLrEovU3iq8BMckn329Bu1fGbXKTgDpEvUEEwFO2brQZLMmzILGF/v4B9ImEGtinAUNgDSfEpgPN23sdWQH9rwEClGv95JmWNf05tuVomhZzOBtCFoAno3XB1nj16avjsqJ3aGFY2CCcfsNrwKzhIotmm82bcI4BJuJIVRIKbZ1 cardno:000610954665
|
||||
''
|
||||
);
|
||||
identitiesOnly = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"github.com" = forceIdentityPrivate // {
|
||||
user = "git";
|
||||
};
|
||||
};
|
||||
extraConfig = ''
|
||||
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
|
||||
'';
|
||||
#TODO: Authorized keys implementation, see https://github.com/nix-community/home-manager/pull/9
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue