mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-09-12 05:47:19 -05:00
45 lines
878 B
Nix
45 lines
878 B
Nix
{
|
|
lib,
|
|
enabled,
|
|
...
|
|
}: {
|
|
users.motd = lib.mkRune {
|
|
number = "6";
|
|
rune = "algiz";
|
|
};
|
|
|
|
services.resolved = enabled;
|
|
|
|
services.fail2ban = {
|
|
enable = true;
|
|
maxretry = 5;
|
|
bantime = "24h";
|
|
};
|
|
|
|
time.timeZone = "America/Chicago";
|
|
|
|
networking.hostName = "algiz";
|
|
# # added to make using `pip install` work in docker build
|
|
# networking.nameservers = [ "8.8.8.8"];
|
|
|
|
# allow tcp connections for revsere proxy
|
|
networking.firewall =
|
|
enabled
|
|
// {
|
|
allowedTCPPorts = [80 443];
|
|
};
|
|
|
|
services.openssh =
|
|
enabled
|
|
// {settings.PasswordAuthentication = false;};
|
|
|
|
# users.mutableUsers = false;
|
|
|
|
# Use the GRUB 2 boot loader.
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
|
|
|
# don't delete this you foo bar
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
}
|