tlaternet-server/etc/nixos/configuration.nix

48 lines
819 B
Nix
Raw Normal View History

2019-11-23 23:55:26 +00:00
{ 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";
}