2022-02-01 01:20:26 +00:00
|
|
|
{ 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;
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
|
|
|
2022-02-01 01:25:39 +00:00
|
|
|
services.nginx.enable = true;
|
|
|
|
|
2022-02-01 01:23:45 +00:00
|
|
|
within.microcode = {
|
2022-02-01 01:20:26 +00:00
|
|
|
enable = true;
|
|
|
|
vendor = "intel";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.tailscale.enable = true;
|
2022-02-01 02:53:27 +00:00
|
|
|
services.redis.servers.main = {
|
|
|
|
enable = true;
|
|
|
|
port = 6379;
|
2022-02-01 02:57:28 +00:00
|
|
|
bind = "0.0.0.0";
|
2022-02-01 02:53:27 +00:00
|
|
|
};
|
2022-02-01 01:20:26 +00:00
|
|
|
|
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
|
|
|
publish = {
|
|
|
|
enable = true;
|
|
|
|
addresses = true;
|
|
|
|
};
|
|
|
|
};
|
2022-02-19 19:24:42 +00:00
|
|
|
|
|
|
|
within.services.mara-bot.enable = true;
|
2022-02-19 22:35:02 +00:00
|
|
|
age.secrets.mara-bot = {
|
2022-02-19 22:36:05 +00:00
|
|
|
file = ./secret/mara.age;
|
2022-02-19 22:37:47 +00:00
|
|
|
path = "/var/lib/mara-bot/config.yaml";
|
2022-02-19 22:35:02 +00:00
|
|
|
owner = "mara-bot";
|
|
|
|
group = "mara-bot";
|
|
|
|
};
|
2022-02-01 01:20:26 +00:00
|
|
|
}
|
|
|
|
|