flake.nix: init

This commit is contained in:
Astro 2021-03-17 16:08:14 +01:00
parent 0d58f8484e
commit 61a5d69f67
3 changed files with 52 additions and 7 deletions

25
flake.lock Normal file
View File

@ -0,0 +1,25 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1615991631,
"narHash": "sha256-TEDPXYy9sVLyctW/OBqxhxlxPmvTwRqXBch0eexJm8Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f137bcd5c92906ae0f924769a95b8c8e6602f90b",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

25
flake.nix Normal file
View File

@ -0,0 +1,25 @@
{
description = "C3D2 Hydra projects";
outputs = { self, nixpkgs }: {
packages.x86_64-linux = {
jobsets =
nixpkgs.legacyPackages.x86_64-linux.writeText "jobsets.json" (builtins.toJSON ({
jobsets = {
type = 1;
enabled = 1;
hidden = false;
checkinterval = 300;
schedulingshares = 100;
enableemail = true;
emailoverride = "";
keepnr = 12;
flake = "git+https://gitea.c3d2.de/C3D2/hydra-config.git";
};
#inherit (import ./jobsets.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; }) jobsets;
}));
};
checks = {};
};
}

View File

@ -2,16 +2,11 @@
"enabled": 1,
"hidden": true,
"description": "Jobsets",
"nixexprinput": "hydra-config",
"nixexprpath": "jobsets.nix",
"checkinterval": 300,
"schedulingshares": 100,
"enableemail": false,
"emailoverride": "astro@spaceboyz.net",
"keepnr": 10,
"inputs": {
"nixpkgs": { "type": "git", "value": "https://github.com/NixOS/nixpkgs.git release-20.03 1", "emailresponsible": false },
"hydra-config": { "type": "git", "value": "https://gitea.c3d2.de/C3D2/hydra-config.git master 1", "emailresponsible": false }
},
"type": 0
"flake": "git+https://gitea.c3d2.de/C3D2/hydra-config.git",
"type": 1
}