nixin-krops/modules/nixin.nix

22 lines
525 B
Nix
Raw Normal View History

# Nixin common configuration for all servers
{ config, pkgs, lib, ... }:
{
# Set NIX_PATH to use nixpkgs deployed with krops
environment.variables.NIX_PATH = lib.mkForce "/var/src";
environment.shellAliases = {
tm = "tmux new -A -s shared" ;
ll = "ls -al";
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.openssh.ports = [ 144 ];
services.openssh.settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
}