parent
2c07006ef0
commit
19a4f7f10d
101
flake.lock
101
flake.lock
|
@ -186,33 +186,10 @@
|
|||
"url": "https://gitea.c3d2.de/astro/heliwatch.git"
|
||||
}
|
||||
},
|
||||
"hydra": {
|
||||
"inputs": {
|
||||
"nix": "nix",
|
||||
"nixpkgs": [
|
||||
"hydra",
|
||||
"nix",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1666385840,
|
||||
"narHash": "sha256-ablHzPwN2Pvju0kyo8N5Wavqkl60gKHCPLnruwqvwTg=",
|
||||
"owner": "nixos",
|
||||
"repo": "hydra",
|
||||
"rev": "312cb42275e593eea5c44d8430ab09375fdb2fdb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"repo": "hydra",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hydra-ca": {
|
||||
"inputs": {
|
||||
"newNixpkgs": "newNixpkgs",
|
||||
"nix": "nix_2",
|
||||
"nix": "nix",
|
||||
"nixpkgs": [
|
||||
"hydra-ca",
|
||||
"nix",
|
||||
|
@ -250,22 +227,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"lowdown-src_2": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1633514407,
|
||||
"narHash": "sha256-Dw32tiMjdK9t3ETl5fzGrutQTzh2rufgZV4A/BbxuD4=",
|
||||
"owner": "kristapsdz",
|
||||
"repo": "lowdown",
|
||||
"rev": "d2c2b44ff6c27b936ec27358a2653caaef8f73b8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "kristapsdz",
|
||||
"repo": "lowdown",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"microvm": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
|
@ -371,27 +332,6 @@
|
|||
"nixpkgs": "nixpkgs_2",
|
||||
"nixpkgs-regression": "nixpkgs-regression"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1661606874,
|
||||
"narHash": "sha256-9+rpYzI+SmxJn+EbYxjGv68Ucp22bdFUSy/4LkHkkDQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nix",
|
||||
"rev": "11e45768b34fdafdcf019ddbd337afa16127ff0f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "2.11.0",
|
||||
"repo": "nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix_2": {
|
||||
"inputs": {
|
||||
"lowdown-src": "lowdown-src_2",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"nixpkgs-regression": "nixpkgs-regression_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1654014617,
|
||||
"narHash": "sha256-qNL3lQPBsnStkru3j1ajN/H+knXI+X3dku8/dBfSw3g=",
|
||||
|
@ -501,22 +441,6 @@
|
|||
}
|
||||
},
|
||||
"nixpkgs-regression": {
|
||||
"locked": {
|
||||
"lastModified": 1643052045,
|
||||
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-regression_2": {
|
||||
"locked": {
|
||||
"lastModified": 1643052045,
|
||||
"narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=",
|
||||
|
@ -532,22 +456,6 @@
|
|||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1657693803,
|
||||
"narHash": "sha256-G++2CJ9u0E7NNTAi9n5G8TdDmGJXcIjkJ3NF8cetQB8=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "365e1b3a859281cf11b94f87231adeabbdd878a2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-22.05-small",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1645296114,
|
||||
"narHash": "sha256-y53N7TyIkXsjMpOG7RhvqJFGDacLs9HlyHeSTBioqYU=",
|
||||
|
@ -603,11 +511,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1667766097,
|
||||
"narHash": "sha256-+Zkm3ZeKwjbm3zx0qM88N/c3T4337LZ4eer6U2HHJns=",
|
||||
"lastModified": 1667855036,
|
||||
"narHash": "sha256-Vf6qqv7K8rP2aTtrgMk/R1b1OaqFZ/RCRzrwHWHUu2w=",
|
||||
"owner": "astro",
|
||||
"repo": "nix-openwrt-imagebuilder",
|
||||
"rev": "007c83590aef180818d62f67c165e648945284d2",
|
||||
"rev": "b8bcba865ae34ef16584e90d3793d3cff4096d8d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -626,7 +534,6 @@
|
|||
"flake-utils": "flake-utils",
|
||||
"harmonia": "harmonia",
|
||||
"heliwatch": "heliwatch",
|
||||
"hydra": "hydra",
|
||||
"hydra-ca": "hydra-ca",
|
||||
"microvm": "microvm",
|
||||
"naersk": "naersk_2",
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
utils.follows = "flake-utils";
|
||||
};
|
||||
};
|
||||
hydra.url = "github:nixos/hydra";
|
||||
hydra-ca.url = "github:mlabs-haskell/hydra/aciceri/ca-derivations";
|
||||
microvm = {
|
||||
url = "github:astro/microvm.nix";
|
||||
|
@ -749,7 +748,6 @@
|
|||
|
||||
hydra = nixosSystem' {
|
||||
modules = [
|
||||
inputs.hydra.nixosModules.hydra
|
||||
self.nixosModules.cluster
|
||||
skyflake.nixosModules.default
|
||||
(harmonia + "/module.nix")
|
||||
|
|
|
@ -5,59 +5,60 @@ let
|
|||
|
||||
in
|
||||
{
|
||||
containers = {
|
||||
hydra-ca = {
|
||||
autoStart = true;
|
||||
config = { ... }: {
|
||||
imports = [
|
||||
hydra-ca.nixosModules.hydra
|
||||
];
|
||||
# disabled because currently it display `ARRAY(0x4ec2040)` on the website and also uses a perl array in store paths instead of /nix/store
|
||||
# containers = {
|
||||
# hydra-ca = {
|
||||
# autoStart = true;
|
||||
# config = { ... }: {
|
||||
# imports = [
|
||||
# hydra-ca.nixosModules.hydra
|
||||
# ];
|
||||
|
||||
environment.systemPackages = with pkgs; [ git ];
|
||||
# environment.systemPackages = with pkgs; [ git ];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 3001 ];
|
||||
# networking.firewall.allowedTCPPorts = [ 3001 ];
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
allowed-uris = "https://gitea.c3d2.de/ https://github.com/ https://gitlab.com/ ssh://gitea@gitea.c3d2.de/";
|
||||
builders-use-substitutes = true;
|
||||
experimental-features = "ca-derivations nix-command flakes";
|
||||
extra-substituters = "https://cache.ngi0.nixos.org/";
|
||||
extra-trusted-public-keys = "cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA=";
|
||||
substituters = [
|
||||
"https://cache.ngi0.nixos.org/"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA="
|
||||
];
|
||||
};
|
||||
};
|
||||
# nix = {
|
||||
# settings = {
|
||||
# allowed-uris = "https://gitea.c3d2.de/ https://github.com/ https://gitlab.com/ ssh://gitea@gitea.c3d2.de/";
|
||||
# builders-use-substitutes = true;
|
||||
# experimental-features = "ca-derivations nix-command flakes";
|
||||
# extra-substituters = "https://cache.ngi0.nixos.org/";
|
||||
# extra-trusted-public-keys = "cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA=";
|
||||
# substituters = [
|
||||
# "https://cache.ngi0.nixos.org/"
|
||||
# ];
|
||||
# trusted-public-keys = [
|
||||
# "cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA="
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
|
||||
nixpkgs = {
|
||||
# config.contentAddressedByDefault = true;
|
||||
overlays = [ self.overlay ];
|
||||
};
|
||||
# nixpkgs = {
|
||||
# # config.contentAddressedByDefault = true;
|
||||
# overlays = [ self.overlay ];
|
||||
# };
|
||||
|
||||
services = {
|
||||
hydra-dev = lib.recursiveUpdate config.services.hydra-dev {
|
||||
hydraURL = "https://hydra-ca.hq.c3d2.de";
|
||||
port = 3001;
|
||||
};
|
||||
};
|
||||
# services = {
|
||||
# hydra-dev = lib.recursiveUpdate config.services.hydra-dev {
|
||||
# hydraURL = "https://hydra-ca.hq.c3d2.de";
|
||||
# port = 3001;
|
||||
# };
|
||||
# };
|
||||
|
||||
system.stateVersion = "22.05"; # Did you read the comment? No.
|
||||
};
|
||||
hostAddress = "192.168.100.1";
|
||||
localAddress = "192.168.100.2";
|
||||
privateNetwork = true;
|
||||
};
|
||||
};
|
||||
# system.stateVersion = "22.05"; # Did you read the comment? No.
|
||||
# };
|
||||
# hostAddress = "192.168.100.1";
|
||||
# localAddress = "192.168.100.2";
|
||||
# privateNetwork = true;
|
||||
# };
|
||||
# };
|
||||
|
||||
networking.nat = {
|
||||
enable = true;
|
||||
externalInterface = "serv";
|
||||
internalInterfaces = [ "ve-hydra-ca" ];
|
||||
};
|
||||
# networking.nat = {
|
||||
# enable = true;
|
||||
# externalInterface = "serv";
|
||||
# internalInterfaces = [ "ve-hydra-ca" ];
|
||||
# };
|
||||
|
||||
nix = {
|
||||
buildMachines = [{
|
||||
|
@ -75,12 +76,12 @@ in
|
|||
allowed-uris = "http:// https:// ssh://";
|
||||
builders-use-substitutes = true;
|
||||
experimental-features = "ca-derivations nix-command flakes";
|
||||
trusted-users = [ "hydra" "root" ];
|
||||
};
|
||||
trustedUsers = [ "hydra" "root" ];
|
||||
};
|
||||
|
||||
services = {
|
||||
hydra-dev = {
|
||||
hydra = {
|
||||
enable = true;
|
||||
buildMachinesFiles = [
|
||||
"/etc/nix/machines"
|
||||
|
@ -133,9 +134,9 @@ in
|
|||
"hydra.hq.c3d2.de" = hydraVhost // {
|
||||
default = true;
|
||||
};
|
||||
"hydra-ca.hq.c3d2.de" = hydraVhost // {
|
||||
locations."/".proxyPass = "http://192.168.100.2:3001";
|
||||
};
|
||||
# "hydra-ca.hq.c3d2.de" = hydraVhost // {
|
||||
# locations."/".proxyPass = "http://192.168.100.2:3001";
|
||||
# };
|
||||
"hydra.serv.zentralwerk.org" = hydraVhost;
|
||||
"nix-serve.hq.c3d2.de" = {
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Reference in New Issue