48 lines
819 B
Nix
48 lines
819 B
Nix
|
{ config, pkgs, ... };
|
||
|
|
||
|
{
|
||
|
imports = [
|
||
|
./hardware-configuration.nix
|
||
|
./linode.nix
|
||
|
];
|
||
|
|
||
|
networking = {
|
||
|
hostName = "tlater.net";
|
||
|
|
||
|
# useDHCP is deprecated
|
||
|
useDHCP = false;
|
||
|
# interfaces.enp0s31f6.useDHCP = true;
|
||
|
};
|
||
|
|
||
|
time.timeZone = "Europe/London";
|
||
|
|
||
|
users.users = {
|
||
|
tlater = {
|
||
|
isNormalUser = true;
|
||
|
extraGroups = [ "wheel" "docker" ];
|
||
|
openssh.authorizedKeys.keys = [];
|
||
|
};
|
||
|
|
||
|
lauren = {
|
||
|
isNormalUser = true;
|
||
|
openssh.authorizedKeys.keys = [];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
];
|
||
|
|
||
|
services = {
|
||
|
openssh = {
|
||
|
enable = true;
|
||
|
allowSFTP = false;
|
||
|
passwordAuthentication = false;
|
||
|
permitRootLogin = "no";
|
||
|
ports = [ 2222 ];
|
||
|
startWhenNeeded = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
system.stateVersion = "19.09";
|
||
|
}
|