setup zerotierone and sshconfig
This commit is contained in:
parent
918baa6d58
commit
237abb8c51
@ -1,6 +1,8 @@
|
||||
{ pkgs, ... }:
|
||||
# home manager
|
||||
{
|
||||
imports = [ ./home/sshconfig.nix ];
|
||||
|
||||
programs.zsh.enable = true;
|
||||
home = {
|
||||
username = "richie";
|
||||
|
26
users/richie/home/sshconfig.nix
Normal file
26
users/richie/home/sshconfig.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
|
||||
matchBlocks = {
|
||||
jeeves = {
|
||||
hostname = "192.168.90.40";
|
||||
user = "richie";
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
port = 629;
|
||||
};
|
||||
jeevesjr = {
|
||||
hostname = "192.168.90.35";
|
||||
user = "richie";
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
port = 352;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -15,6 +15,7 @@
|
||||
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
hostId = "9b68eb32";
|
||||
};
|
||||
|
||||
hardware.pulseaudio.enable = false;
|
||||
@ -42,6 +43,11 @@
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
zerotierone = {
|
||||
enable = true;
|
||||
joinNetworks = [ "e4da7455b2ae64ca" ];
|
||||
};
|
||||
};
|
||||
|
||||
users.users.richie = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user