Setup kernighan network
This commit is contained in:
parent
1e001d23fd
commit
069a94666f
|
@ -8,8 +8,22 @@
|
|||
./kernighan-hardware.nix
|
||||
];
|
||||
|
||||
networking.hostName = "kernighan";
|
||||
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking = {
|
||||
hostName = "kernighan";
|
||||
interfaces = {
|
||||
end0.ipv4.addresses = [{
|
||||
address = "192.168.40.25";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
end0.ipv6.addresses = [{
|
||||
address = "fe80::dea6:32ff:fe04:c6f3";
|
||||
prefixLength = 64;
|
||||
}];
|
||||
};
|
||||
defaultGateway = "192.168.40.1";
|
||||
defaultGateway6 = "00:b8:c2:db:b8:57";
|
||||
nameservers = [ "208.67.222.222" "208.67.220.220" ];
|
||||
};
|
||||
|
||||
boot.loader.grub.enable = false;
|
||||
boot.loader.generic-extlinux-compatible.enable = true;
|
||||
|
@ -18,10 +32,4 @@
|
|||
git
|
||||
vim
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
22 # SSH
|
||||
80 # HTTP
|
||||
443 # HTTPS
|
||||
];
|
||||
}
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
"tmux"
|
||||
];
|
||||
initialPassword = "password";
|
||||
openssh.authorizedKeys.keyFiles = [
|
||||
../users/tsv/authorized_keys
|
||||
];
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = [ "root" "tsv" ];
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCeb7wzKC46wBN9obirfWvIkZJDPHjRDNBcRur1dn0Vg3HKxdajAqURl5BysUWhkjHKaVObcjAHAv7KBEa6zCDo8W+Xvr6GLPjs57sSlFYYx0+o7/iKIhBFmqqPXOmh222jMitBw9D1tso1XyV7pt6Y7HWOGO7OdXiyyl2yMpyhgG7+a41mUXAKYRVwic6dRQdU4mHAsFPds3n8EGYHN7PTwm5R5KeCJGlRjpAIeKa9+e3W7X3Lx9D15hBc5D8AYs6p+qKb+dqWAkBSBzd10NXYAdRZ1tI5r9an3jIckEuagLx4RxnE+dj4sG6AnrGj1UTFTaSU/FzwEQ2luUj92JCeumsG615bh8WgaUSDoocrgA7AEieB0LjbY/l3cGjJJuZ4++JqZSxBoX3dDJqhH4C0VqHYB5MgkUSdtKzl0a+DSmliaWsbUpphPhZesMGoGwayUqT8l/FUxVVDbVKhkXAvJT/KO4MhdBU2/7X2ROQj+hZJld6vu1X1JLvPRH08x4GBP4S+07wa1lhyb3Ajg1F1HGQTPjMIl/dEh5O27+0MLQDNJCCyEi1aObqJ0MEgSmcZwg6fVYiOJSXVlUCUFuxycOoXN6NWcaiU9cUjkBsj69bkGzKByC0OQV6u5yjvE/lOqYDHtXOxAA+XAgAmpB5y9w2DbH8jzW0WRkgGkwKcDw== trevor@tsvallender.co.uk
|
Loading…
Reference in New Issue