oizys/hosts/algiz/system.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2024-02-27 10:27:41 -06:00
{lib, ...}: {
users.motd = lib.mkRune {
2024-01-28 23:31:00 -06:00
number = "6";
rune = "algiz";
};
2024-01-23 11:51:13 -06:00
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;
2024-03-17 15:13:46 -05:00
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
2024-01-23 11:51:13 -06:00
# 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. Its 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).
2024-03-17 15:13:46 -05:00
system.stateVersion = "23.11"; # Did you read the comment?
2024-01-23 11:51:13 -06:00
}