2022-02-01 01:20:26 +00:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2023-06-20 15:08:09 +00:00
|
|
|
imports =
|
|
|
|
[ ./hardware-configuration.nix ./prometheus.nix ./solanum.nix ./znc.nix ];
|
2022-02-01 01:20:26 +00:00
|
|
|
|
|
|
|
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-12-29 16:09:00 +00:00
|
|
|
services.nginx.enable = false;
|
|
|
|
|
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;
|
|
|
|
|
2023-06-20 15:08:09 +00:00
|
|
|
services.postgresql = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.postgresql_15;
|
|
|
|
enableTCPIP = true;
|
|
|
|
authentication = ''
|
|
|
|
host marabot all 100.64.0.0/10 md5
|
|
|
|
'';
|
|
|
|
};
|
2022-12-29 17:52:38 +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
|
|
|
}
|
|
|
|
|