mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
refactor ssh
This commit is contained in:
parent
67f39294de
commit
bf1585fdad
@ -7,6 +7,7 @@ in
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
./git.home.nix
|
||||
./nitrokey-ssh-gpg.home.nix
|
||||
];
|
||||
|
||||
/* Enable home-manager to configure GNOME */
|
||||
@ -28,21 +29,6 @@ in
|
||||
# defaultCacheTtl = 1800;
|
||||
#};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts ${../known_hosts}";
|
||||
matchBlocks = {
|
||||
"nas" = {
|
||||
hostname = "p1st.de";
|
||||
user = "yoda";
|
||||
port = 2222;
|
||||
compression = true;
|
||||
# TODO
|
||||
#preferredAuthentication = "publickey";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: See history.path below.
|
||||
# xdg = {
|
||||
# enable = true;
|
||||
|
23
yodaTab/nitrokey-ssh-gpg.home.nix
Normal file
23
yodaTab/nitrokey-ssh-gpg.home.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home-manager.users.yoda = {
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts ${../ssh/known_hosts}";
|
||||
matchBlocks = {
|
||||
"nas" = {
|
||||
hostname = "p1st.de";
|
||||
user = "yoda";
|
||||
port = 2222;
|
||||
compression = true;
|
||||
|
||||
#identityFile = "pubkey_nitrokey_ssh.pub";
|
||||
#identitiesOnly = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user