nixos-configs/hosts/chrysalis/default.nix

49 lines
947 B
Nix
Raw Normal View History

{ lib, config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./prometheus.nix
./solanum.nix
./znc.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "chrysalis"; # Define your hostname.
networking.useDHCP = false;
networking.interfaces.enp11s0.useDHCP = true;
networking.interfaces.enp12s0.useDHCP = true;
environment.systemPackages = with pkgs; [ wget vim ];
services.openssh.enable = true;
networking.firewall.enable = false;
system.stateVersion = "20.09";
nixpkgs.config.allowUnfree = true;
virtualisation.docker.enable = true;
virtualisation.libvirtd.enable = true;
cadey.cpu = {
enable = true;
vendor = "intel";
};
services.tailscale.enable = true;
services.avahi = {
enable = true;
publish = {
enable = true;
addresses = true;
};
};
services.redis.enable = true;
}