machine-config/animal/configuration.nix

76 lines
2.2 KiB
Nix
Raw Normal View History

2024-07-07 20:37:49 -05:00
{ config, lib, pkgs, ... }: {
# config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
# "minecraft-server"
# ];
imports = [
./hardware-configuration.nix
./web.nix
./monitoring.nix
./kathe.nix
./eric.nix
];
networking.hostName = "animal";
time.timeZone = "America/Chicago";
i18n.defaultLocale = "en_US.UTF-8";
fileSystems."/mnt/nas" = {
device = "//home.chandlerswift.com/chandlerpublic";
fsType = "cifs";
options = [ "guest" "port=55445" ];
};
# services.minecraft-server = {
# enable = true;
# declarative = true;
# eula = true;
# dataDir = "/srv/minecraft";
# openFirewall = true;
# whitelist = {
# chandlerswift = "04095aeb-edec-3c3f-b0d5-d703fab53c9c";
# villlater = "90b7fcd6-9f43-38c5-8ea2-163f13b092f0";
# LarryHorton = "de963636-138f-3ef4-8c52-a2dcf9a328f4";
# IsaacSwift = "88e17365-4b63-3385-a4b6-b2c4864b0b98";
# Mayornnaise = "be25bf89-ef07-3fa3-926b-20b939df62f1";
# Ripptide66 = "a94051cb-5769-3726-86b5-bc9fe4cbe5f5";
# };
# };
services.murmur = {
# TODO https://nixos.org/manual/nixos/stable/options#opt-services.murmur.enable
# TODO https://github.com/azlux/botamusique
#enable = true;
};
environment.systemPackages = with pkgs; [ rsync ];
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEhPyyqS3BGYor3zLbjc8hZuhem3mS8TNmvWogXcnz/b chandler@chandlerswift.com'' ];
# services.jitsi-meet = {
# enable = true;
# hostName = "meet.animal.chandlerswift.com";
# nginx.enable = false;
# caddy.enable = true;
# };
# services.jitsi-videobridge.openFirewall = true;
networking.firewall.allowedTCPPorts = [
80 # Caddy
443 # Caddy
];
# networking.firewall.allowedUDPPorts = [ ... ];
# This option defines the first version of NixOS you have installed on this particular machine,
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
#
# Most users should NEVER change this value after the initial install, for any reason,
# even if you've upgraded your system to a new NixOS release.
system.stateVersion = "24.05";
}