From 6d88b786c19a69142668db342441afcab3d7ac7d Mon Sep 17 00:00:00 2001 From: James Eversole Date: Fri, 30 Jun 2023 19:35:17 -0500 Subject: [PATCH] Fix mailserver DNS; Add local build machine; Add test Hydra jobs --- flake.nix | 6 ++++++ system/dns.nix | 6 ++++++ system/nix-conf.nix | 9 ++++++++- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 1f8f928..efcb0fa 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,12 @@ { devShell.x86_64-linux = shell.dev; formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt; + + hydraJobs = { + devshell = shell.dev; + formatter = shell.packages.x86_64-linux.format; + }; + packages = shell.packages; nixosConfigurations = { diff --git a/system/dns.nix b/system/dns.nix index 1807e69..d7648b9 100644 --- a/system/dns.nix +++ b/system/dns.nix @@ -10,6 +10,12 @@ } } + mail.matri.cx { + template IN A { + answer "{{ .Name }} 0 IN A 149.28.112.101" + } + } + *.matri.cx { template IN A { answer "{{ .Name }} 0 IN A 192.168.0.130" diff --git a/system/nix-conf.nix b/system/nix-conf.nix index d22e7d1..be30014 100644 --- a/system/nix-conf.nix +++ b/system/nix-conf.nix @@ -1,6 +1,13 @@ { ... }: { nix = { - buildMachines = [ ]; + buildMachines = [ + { + hostName = "localhost"; + system = "x86_64-linux"; + supportedFeatures = [ "kvm" "nixos-test" "big-parallel" "benchmark" ]; + maxJobs = 8; + } + ]; distributedBuilds = false; settings = { auto-optimise-store = false; # https://github.com/NixOS/nix/issues/7273