mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: add home nodes
This commit is contained in:
parent
672ffc38cc
commit
d68d37f804
2 changed files with 52 additions and 37 deletions
19
ci/nodes.nix
19
ci/nodes.nix
|
|
@ -6,7 +6,8 @@
|
|||
}:
|
||||
with lib; let
|
||||
pkgs = channels.nixpkgs;
|
||||
enabledNixosSystems = filterAttrs (_: system: system.config.ci.enable and system.config.type == "NixOS") channels.nixfiles.systems;
|
||||
enabledNixosSystems = filterAttrs (_: system: system.config.ci.enable && system.config.type == "NixOS") channels.nixfiles.systems;
|
||||
enabledHomeSystems = filterAttrs (_: system: system.config.ci.enable && system.config.type == "Home") channels.nixfiles.systems;
|
||||
in {
|
||||
imports = [ ./common.nix ];
|
||||
config = {
|
||||
|
|
@ -46,8 +47,22 @@ in {
|
|||
};
|
||||
};
|
||||
};
|
||||
genericHomeBuildJob = name: system: nameValuePair "home-${name}" {
|
||||
step.${name} = {
|
||||
name = "build home closure for ${name}";
|
||||
order = 500;
|
||||
run = "nix run .#nf-build-system -- homeConfigurations.${name}.activationPackage ${name} Home";
|
||||
env = {
|
||||
CACHIX_SIGNING_KEY = "\${{ secrets.CACHIX_SIGNING_KEY }}";
|
||||
DISCORD_WEBHOOK_LINK = "\${{ secrets.DISCORD_WEBHOOK_LINK }}";
|
||||
NF_UPDATE_CACHIX_PUSH = "1";
|
||||
NF_CONFIG_ROOT = "\${{ github.workspace }}";
|
||||
};
|
||||
};
|
||||
};
|
||||
homeBuildJobs = mapAttrs' genericHomeBuildJob enabledHomeSystems;
|
||||
nixosBuildJobs = mapAttrs' genericNixosBuildJob enabledNixosSystems;
|
||||
in nixosBuildJobs;
|
||||
in nixosBuildJobs // homeBuildJobs;
|
||||
};
|
||||
|
||||
jobs = let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue