2023-06-29 00:27:30 -05:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
2025-09-27 09:20:01 -05:00
|
|
|
|
{ pkgs, ... }:
|
2023-06-29 00:27:30 -05:00
|
|
|
|
|
2025-02-18 15:14:17 -06:00
|
|
|
|
let
|
|
|
|
|
|
speedtest_port = "19472";
|
|
|
|
|
|
in
|
2023-06-29 00:27:30 -05:00
|
|
|
|
{
|
2024-10-03 11:26:39 -05:00
|
|
|
|
imports = [
|
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
./home-assistant.nix
|
|
|
|
|
|
./networking.nix
|
|
|
|
|
|
];
|
2023-09-02 20:07:12 -05:00
|
|
|
|
|
2025-02-18 15:14:17 -06:00
|
|
|
|
greg = {
|
|
|
|
|
|
home = true;
|
|
|
|
|
|
gnome.enable = false;
|
|
|
|
|
|
proxies = {
|
|
|
|
|
|
"speed.home".target = "http://localhost:${speedtest_port}";
|
|
|
|
|
|
"speedtest.thehellings.lan".target = "http://localhost:${speedtest_port}";
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
2024-02-20 14:49:48 -06:00
|
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
|
# Bootloader.
|
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
|
|
enable = true;
|
|
|
|
|
|
device = "/dev/vda";
|
|
|
|
|
|
useOSProber = true;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
|
awscli2
|
|
|
|
|
|
create_ssl
|
|
|
|
|
|
step-ca
|
|
|
|
|
|
];
|
|
|
|
|
|
|
2025-02-18 15:14:17 -06:00
|
|
|
|
networking.hostName = "genesis"; # Define your hostname.
|
|
|
|
|
|
|
|
|
|
|
|
virtualisation.oci-containers.containers = {
|
|
|
|
|
|
speedtest = {
|
|
|
|
|
|
image = "ghcr.io/librespeed/speedtest";
|
|
|
|
|
|
hostname = "speedtest";
|
|
|
|
|
|
ports = [ "${speedtest_port}:80" ];
|
|
|
|
|
|
};
|
2024-10-03 11:26:39 -05:00
|
|
|
|
};
|
2023-06-29 00:27:30 -05:00
|
|
|
|
}
|