renamed: ../hosts/services/configuration.nix -> ../hosts/sup/configuration.nix

renamed:    ../hosts/services/firewall-services.nix -> ../hosts/sup/firewall-services.nix
	renamed:    ../hosts/services/hardware-configuration.nix -> ../hosts/sup/hardware-configuration.nix
	modified:   grafana.nix
alacritty
Alexandre LUCAZEAU 2022-07-02 18:19:36 +00:00
parent 59fb27368d
commit c9967059e7
4 changed files with 11 additions and 5 deletions

View File

@ -7,11 +7,10 @@
../modules/grafana.nix
];
system.stateVersion = "21.05";
system.stateVersion = "22.05";
boot.cleanTmpDir = true;
zramSwap.enable = true;
networking.hostName = "services";
networking.hostName = "sup";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com"

View File

@ -2,6 +2,7 @@
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };

View File

@ -7,7 +7,7 @@
enable = true;
domain = "sup.atlanticaweb.fr";
port = 2342;
addr = "192.168.10.109";
addr = "192.168.10.108";
};
services.prometheus = {
enable = true;
@ -21,7 +21,7 @@
};
scrapeConfigs = [
{
job_name = "services";
job_name = "sup";
static_configs = [{
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
}];
@ -32,6 +32,12 @@
targets = [ "192.168.10.114:${toString config.services.prometheus.exporters.node.port}" ];
}];
}
{
job_name = "pizzajoffre";
static_configs = [{
targets = [ "37.187.103.8:${toString config.services.prometheus.exporters.node.port}" ];
}];
}
];
};
users.users.caddy = {