Compare commits
No commits in common. "c653e9e127189c48cb3096a5fd6bbc1ef3613f89" and "907b96588f0158db92cc8a55831ee7cd0de8552c" have entirely different histories.
c653e9e127
...
907b96588f
@ -72,16 +72,5 @@
|
||||
permitRootLogin = "yes";
|
||||
};
|
||||
|
||||
security.acme.acceptTerms = true;
|
||||
security.acme.defaults.email = "vcp-letsencrypt@clerie.de";
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
clientMaxBodySize = "400M";
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
};
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
}
|
||||
|
@ -21,10 +21,6 @@
|
||||
deployment.targetUser = null;
|
||||
};
|
||||
|
||||
monitoring = { config, pkgs, ... }: {
|
||||
deployment.targetHost = "monitoring.bula22.de";
|
||||
};
|
||||
|
||||
nixdeploy = {...}: {
|
||||
deployment.targetHost = "nixdeploy.bula22.de";
|
||||
deployment.allowLocalDeployment = true;
|
||||
|
@ -1,11 +0,0 @@
|
||||
groups:
|
||||
- name: alert.rules
|
||||
rules:
|
||||
- alert: InstanceDown
|
||||
expr: up{job="node-exporter"} == 0
|
||||
for: 5m
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
summary: "Endpoint {{ $labels.instance }} down"
|
||||
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."
|
@ -6,18 +6,13 @@ with lib;
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.version = 2;
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
networking.hostName = "monitoring";
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces.ens18.ipv4.addresses = [
|
||||
{address = "10.42.10.7"; prefixLength = 24; }
|
||||
];
|
||||
networking.interfaces.ens18.ipv6.addresses = [
|
||||
{address = "2a01:4f8:1c0c:8221::7"; prefixLength = 64; }
|
||||
{address = "2a01:4f8:1c0c:8221::1984"; prefixLength = 64; }
|
||||
];
|
||||
networking.interfaces.ens18.ipv4.addresses = [ { address = ""; prefixLength = 24; } ];
|
||||
networking.interfaces.ens18.ipv6.addresses = [ { address = ""; prefixLength = 64; } ];
|
||||
networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; };
|
||||
networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::1"; interface = "ens18"; };
|
||||
networking.nameservers = [ "2a01:4f8:1c0c:8221::1" "10.42.10.1" ];
|
||||
@ -26,17 +21,7 @@ with lib;
|
||||
enable = true;
|
||||
listenAddress = "[::1]";
|
||||
port = 9093;
|
||||
configuration = {
|
||||
route = {
|
||||
receiver = "default";
|
||||
group_by = [ "instance" ];
|
||||
};
|
||||
receivers = [
|
||||
{
|
||||
name = "default";
|
||||
}
|
||||
];
|
||||
};
|
||||
configuration = {};
|
||||
};
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
@ -75,7 +60,7 @@ with lib;
|
||||
} ];
|
||||
}
|
||||
];
|
||||
rules = [ (readFile ./alertmanager-rules.yml) ];
|
||||
rules = [ (readFile ./rules.yml) ];
|
||||
};
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
@ -94,7 +79,11 @@ with lib;
|
||||
isDefault = true;
|
||||
}
|
||||
];
|
||||
dashboards = [];
|
||||
dashboards = [
|
||||
{
|
||||
options.path = ./dashboards;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
services.nginx = {
|
||||
@ -113,6 +102,5 @@ with lib;
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
|
||||
system.stateVersion = "22.05";
|
||||
system.stateVersion = "";
|
||||
}
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/121f5b0c-2726-4d38-befe-52a27ef310a8";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/E1EE-618A";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
Loading…
Reference in New Issue
Block a user