From 43286568c2a50c4eff9f1b6440be6d032b99271b Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Fri, 16 Feb 2024 04:28:53 +0000 Subject: [PATCH] Fix build warning for EDI and add hydra options. --- hosts/x86_64/EDI/configuration.nix | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/hosts/x86_64/EDI/configuration.nix b/hosts/x86_64/EDI/configuration.nix index 77995eb..2517edd 100644 --- a/hosts/x86_64/EDI/configuration.nix +++ b/hosts/x86_64/EDI/configuration.nix @@ -1,9 +1,11 @@ + GNU nano 7.2 /etc/nixos/edi.nix { config, pkgs, lib, ... }: { imports = [ ./hardware-configuration.nix + #./home-assistant.nix ]; boot.kernelParams = [ "console=tty0" ]; @@ -13,9 +15,7 @@ nix.buildMachines = [{ hostName = "localhost"; systems = ["x86_64-linux" - "aarch64-linux" - "x86_64-darwin" - "aarch64-darwin"]; + "aarch64-linux"]; supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"]; maxJobs = 8; }]; @@ -23,12 +23,23 @@ networking.hostName = "EDI"; networking.firewall = { enable = true; - allowedTCPPorts = [ 80 443 ]; + allowedTCPPorts = [ 80 443 3000 8123 ]; }; + nixpkgs.config.permittedInsecurePackages = [ + "openssl-1.1.1w" + ]; + # Enable the OpenSSH daemon. - services.openssh = { - permitRootLogin = "no"; + services.openssh.settings = { + PermitRootLogin = "no"; + }; + + services.hydra = { + enable = true; + hydraURL = "localhost:3000"; + notificationSender = "hydra@localhost"; + useSubstitutes = true; }; }