summaryrefslogtreecommitdiff
path: root/parts
diff options
context:
space:
mode:
Diffstat (limited to 'parts')
-rw-r--r--parts/dev.nix32
-rw-r--r--parts/workflow.nix15
2 files changed, 15 insertions, 32 deletions
diff --git a/parts/dev.nix b/parts/dev.nix
index 5628e33..a796912 100644
--- a/parts/dev.nix
+++ b/parts/dev.nix
@@ -2,7 +2,6 @@
perSystem = {
lib,
pkgs,
- system,
config,
...
}: {
@@ -18,37 +17,6 @@
};
};
- # a linkFarm of expected outputs for ci
- checks = {
- ciGate = let
- /*
- require self.checks for all systems
- require self.packages for x86_64-linux
- */
- required = builtins.concatMap builtins.attrValues (
- [(builtins.removeAttrs config.checks ["ciGate"])]
- ++ lib.optionals (system == "x86_64-linux") [(builtins.removeAttrs config.packages ["default"])]
- );
-
- paths =
- builtins.foldl'
- (
- acc: deriv: let
- name = deriv.pname or deriv.name;
- pathName =
- # if im not sure why `acc?name` doesn't work here
- if (builtins.elem name (builtins.attrNames acc))
- then "${name}-1"
- else name;
- in
- acc // {"${pathName}" = deriv.path or deriv.outPath;}
- )
- {}
- required;
- in
- pkgs.linkFarm "ci-gate" paths;
- };
-
proc.groups.daemons.processes = {
redis.command = lib.getExe' pkgs.redis "redis-server";
};
diff --git a/parts/workflow.nix b/parts/workflow.nix
new file mode 100644
index 0000000..600a1bb
--- /dev/null
+++ b/parts/workflow.nix
@@ -0,0 +1,15 @@
+{
+ githubWorkflowGenerator = {
+ outputs = [
+ "checks"
+ "devShells"
+ "packages"
+ ];
+
+ overrides = {
+ checks.systems = ["x86_64-linux"];
+ devShells.systems = ["x86_64-linux"];
+ packages.systems = ["x86_64-linux"];
+ };
+ };
+}