mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-10 17:13:14 -06:00
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
|
{...}: {
|
|||
|
users.motd = builtins.readFile ./rune;
|
|||
|
|
|||
|
swapDevices = [
|
|||
|
{
|
|||
|
device = "/var/lib/swapfile";
|
|||
|
size = 2 * 1024;
|
|||
|
}
|
|||
|
];
|
|||
|
|
|||
|
services.resolved.enable = true;
|
|||
|
|
|||
|
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 = {
|
|||
|
enable = true;
|
|||
|
allowedTCPPorts = [80 443];
|
|||
|
};
|
|||
|
|
|||
|
services.openssh.enable = true;
|
|||
|
services.openssh.settings.PasswordAuthentication = false;
|
|||
|
|
|||
|
users.mutableUsers = false;
|
|||
|
|
|||
|
# Use the GRUB 2 boot loader.
|
|||
|
boot.loader.grub.enable = true;
|
|||
|
boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
|
|||
|
|
|||
|
# This value determines the NixOS release from which the default
|
|||
|
# settings for stateful data, like file locations and database versions
|
|||
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|||
|
# this value at the release version of the first install of this system.
|
|||
|
# Before changing this value read the documentation for this option
|
|||
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|||
|
system.stateVersion = "22.11"; # Did you read the comment?
|
|||
|
}
|