2019-11-26 23:05:21 +00:00
|
|
|
{ config, pkgs, ... }:
|
2019-11-23 23:55:26 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./linode.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "tlater.net";
|
|
|
|
|
|
|
|
# useDHCP is deprecated
|
|
|
|
useDHCP = false;
|
2019-11-26 23:05:44 +00:00
|
|
|
interfaces.eth0.useDHCP = true;
|
2019-11-23 23:55:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/London";
|
|
|
|
|
|
|
|
users.users = {
|
|
|
|
tlater = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [ "wheel" "docker" ];
|
2019-11-24 00:52:26 +00:00
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOu0MwDJJcnh0JO3rFWqB5i7Katc06z913FJ2mrSwTMsvZrvsfCWeoHkwTZB72nUPhyAR5VtGruoSKDrX486ps+g4+Ec37/Bmij/4F+Kkfa8VjIiqlis2owPa1eWz0Oczvl1Bg+oSraNY75v2Q4cgrjrJyyA+UdG1TUBijBUa16Tqb0jzq7ZXu+HRdMTVSDMbYYiQObs16HTA0KyKT3nd8l18PFqni66ar6OV6k5oLbuXKEFoDI13/JFiD1r/LDghAoDhzAXfPeUsKDeilRwlddqcigpiassGLj1cdqVep3H1GWQ9q0TI1UadN7K3jeEwJVyjBH37duj4/ulWkUlLv tlater@haruna"
|
|
|
|
|
|
|
|
];
|
2019-11-23 23:55:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
lauren = {
|
|
|
|
isNormalUser = true;
|
2019-11-24 00:52:26 +00:00
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCsQbwAdxtl4psbt0lkBaG9UZeJgDcI8xHWbot3cCM4avbfFjfpYhhv5SPlYvRKG4BqHXcK12oATKqKCapJhonR34K3khPiHGex+BUVs19bGTSj7NdXKFSvIDltdTeTA8gmpcOwT3ctlN7mdRNJdMIM3gzmFAu6DFOq/QnSNQViQDSvULyo4ElT48MS0fFuGCFT/bUGZaLQjnfHcnPegtBVfoZRNpLu+qgJZGm36mnzmovvza9cwm7ZE53FFjy4iGk/SzVw8li2b3Om3GgmdJd63ZPUI8wyLowPWQhQzf+N488WUe8mBw8dqUR4vhYSWTWhbQOuEqI2ttyWNrc0ApkknQgwLNzHVTFbaDL5Y0ATQaK7pzZ/c9GOS1dRMSEGFYwSY+pdMzXhIyG9wNCuDSFCXOluocbh4kJ42gdEI12IZ4GgYp5EgJ3obXXNDRizghrqljone415kga1fp+LVA3gLeScoh/DtB3EZ6oa1Dt9LjL8CH6KwX8wFUipCwcUkOCLairiMYyR2P6A9KBPtW/+JI7WaMO6SrBn/IS6wvqHr9If6dClyjpKHD5fqjDF8VrOyBfdGLU1WnYdHHPjmBRsJloLX85bZQtrJChBOS30wfeWwIIsBJOuqdj0/PlYmfq9l6NfGVoowC7BWJMw3Nl91CFfGD44cRUQM0oGQweEnQ== me@laurenweston.com"
|
|
|
|
];
|
2019-11-23 23:55:26 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
];
|
|
|
|
|
|
|
|
services = {
|
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
allowSFTP = false;
|
|
|
|
passwordAuthentication = false;
|
|
|
|
permitRootLogin = "no";
|
|
|
|
ports = [ 2222 ];
|
|
|
|
startWhenNeeded = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "19.09";
|
|
|
|
}
|