{ lib
, ...
}: {
  imports = [
    ./hardware-configuration.nix

    # Users
    ../root.nix
    ../badele.nix
    # Commons
    ../../nix/nixos/features/commons
    ../../nix/nixos/features/homelab

    # Roles
    ../../nix/nixos/roles # Automatically load service from <host.modules> sectionn from `homelab.json` file
    ../../nix/nixos/roles/prometheus/exporter/node.nix
  ];

  networking = {
    useDHCP = false;
    hostName = "rpi40";

    defaultGateway = "192.168.254.254";
    nameservers = [
      "192.168.254.101" # use CoreDNS server
      "89.2.0.1"
      "89.2.0.2"
    ];

    interfaces.enp2s0.ipv4 = {
      addresses = [{
        address = "192.168.254.101";
        prefixLength = 24;
      }];
    };
  };

  system.stateVersion = "22.11";
}
