diff --git a/flake.nix b/flake.nix index 22114f7..4160260 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,7 @@ outputs = { + self, nixpkgs, nixvim, disko, @@ -74,5 +75,10 @@ ) aarch64-linux-hosts ) ); + hydraJobs = { + inherit (self.nixosConfigurations) + x86_64-hosts + ; + }; }; } diff --git a/servers/hydra.nix b/servers/hydra.nix index 16de757..a0a7cff 100644 --- a/servers/hydra.nix +++ b/servers/hydra.nix @@ -16,6 +16,7 @@ in notificationSender = "hydra@sinerva.eu"; port = 8080; useSubstitutes = true; + extraConfig = ''dynamic_run_command = enable''; }; nginx.virtualHosts.${domain}.locations."/" = { @@ -23,19 +24,26 @@ in }; }; - nix.buildMachines = [ - { - hostName = "localhost"; - protocol = null; - system = "x86_64-linux"; - supportedFeatures = [ - "kvm" - "nixos-test" - "big-parallel" - "benchmark" - ]; - maxJobs = 6; - } - ]; + nix = { + settings.allowed-uris = [ + "github:" + "git+https://github.com/" + "git+ssh://github.com/" + ]; + buildMachines = [ + { + hostName = "localhost"; + protocol = null; + system = "x86_64-linux"; + supportedFeatures = [ + "kvm" + "nixos-test" + "big-parallel" + "benchmark" + ]; + maxJobs = 6; + } + ]; + }; } diff --git a/spec.json b/spec.json new file mode 100644 index 0000000..4aa271d --- /dev/null +++ b/spec.json @@ -0,0 +1,15 @@ +{ + "systems": { + "enabled": 1, + "hidden": false, + "description": "NixOS Systems", + "type": 1, + "flake": "git+https://forgejo.sinerva.eu/VSinerva/nixos-conf.git", + "checkinterval": 300, + "schedulingshares": 100, + "enableemail": false, + "enable_dynamic_run_command": false, + "emailoverride": "", + "keepnr": 2 + } +}