mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: properly add home systems
This commit is contained in:
parent
d68d37f804
commit
7a17219c66
3 changed files with 68 additions and 3 deletions
61
.github/workflows/nodes.yml
vendored
61
.github/workflows/nodes.yml
vendored
|
|
@ -31,6 +31,67 @@ jobs:
|
||||||
args: -u .github/workflows/nodes.yml .ci/workflow.yml
|
args: -u .github/workflows/nodes.yml .ci/workflow.yml
|
||||||
attrs: nixpkgs.diffutils
|
attrs: nixpkgs.diffutils
|
||||||
command: diff
|
command: diff
|
||||||
|
home-fullhome:
|
||||||
|
name: nodes-home-fullhome
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- id: checkout
|
||||||
|
name: git clone
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
submodules: false
|
||||||
|
- id: nix-install
|
||||||
|
name: nix install
|
||||||
|
uses: arcnmx/ci/actions/nix/install@v0.7
|
||||||
|
- env:
|
||||||
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
||||||
|
DISCORD_WEBHOOK_LINK: ${{ secrets.DISCORD_WEBHOOK_LINK }}
|
||||||
|
NF_CONFIG_ROOT: ${{ github.workspace }}
|
||||||
|
NF_UPDATE_CACHIX_PUSH: '1'
|
||||||
|
id: fullhome
|
||||||
|
name: build home closure for fullhome
|
||||||
|
run: nix run .#nf-build-system -- homeConfigurations.fullhome.activationPackage
|
||||||
|
fullhome Home
|
||||||
|
- id: ci-dirty
|
||||||
|
name: nix test dirty
|
||||||
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
|
with:
|
||||||
|
attrs: ci.job.home-fullhome.run.test
|
||||||
|
command: ci-build-dirty
|
||||||
|
quiet: false
|
||||||
|
stdout: ${{ runner.temp }}/ci.build.dirty
|
||||||
|
- id: ci-test
|
||||||
|
name: nix test build
|
||||||
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
|
with:
|
||||||
|
attrs: ci.job.home-fullhome.run.test
|
||||||
|
command: ci-build-realise
|
||||||
|
ignore-exit-code: true
|
||||||
|
quiet: false
|
||||||
|
stdin: ${{ runner.temp }}/ci.build.dirty
|
||||||
|
- env:
|
||||||
|
CI_EXIT_CODE: ${{ steps.ci-test.outputs.exit-code }}
|
||||||
|
id: ci-summary
|
||||||
|
name: nix test results
|
||||||
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
|
with:
|
||||||
|
attrs: ci.job.home-fullhome.run.test
|
||||||
|
command: ci-build-summarise
|
||||||
|
quiet: false
|
||||||
|
stdin: ${{ runner.temp }}/ci.build.dirty
|
||||||
|
stdout: ${{ runner.temp }}/ci.build.cache
|
||||||
|
- env:
|
||||||
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
||||||
|
id: ci-cache
|
||||||
|
if: always()
|
||||||
|
name: nix test cache
|
||||||
|
uses: arcnmx/ci/actions/nix/run@v0.7
|
||||||
|
with:
|
||||||
|
attrs: ci.job.home-fullhome.run.test
|
||||||
|
command: ci-build-cache
|
||||||
|
quiet: false
|
||||||
|
stdin: ${{ runner.temp }}/ci.build.cache
|
||||||
nixos-goliath:
|
nixos-goliath:
|
||||||
name: nodes-nixos-goliath
|
name: nodes-nixos-goliath
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,8 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
homeBuildJobs = mapAttrs' genericHomeBuildJob enabledHomeSystems;
|
|
||||||
nixosBuildJobs = mapAttrs' genericNixosBuildJob enabledNixosSystems;
|
nixosBuildJobs = mapAttrs' genericNixosBuildJob enabledNixosSystems;
|
||||||
|
homeBuildJobs = mapAttrs' genericHomeBuildJob enabledHomeSystems;
|
||||||
in nixosBuildJobs // homeBuildJobs;
|
in nixosBuildJobs // homeBuildJobs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -69,8 +69,12 @@ in {
|
||||||
genericNixosBuildJob = name: system: nameValuePair "nixos-${name}" ({ ... }: {
|
genericNixosBuildJob = name: system: nameValuePair "nixos-${name}" ({ ... }: {
|
||||||
imports = [ ./packages.nix ];
|
imports = [ ./packages.nix ];
|
||||||
});
|
});
|
||||||
|
genericHomeBuildJob = name: system: nameValuePair "home-${name}" ({ ... }: {
|
||||||
|
imports = [ ./packages.nix ];
|
||||||
|
});
|
||||||
nixosBuildJobs = mapAttrs' genericNixosBuildJob enabledNixosSystems;
|
nixosBuildJobs = mapAttrs' genericNixosBuildJob enabledNixosSystems;
|
||||||
in nixosBuildJobs;
|
homeBuildJobs = mapAttrs' genericHomeBuildJob enabledHomeSystems;
|
||||||
|
in nixosBuildJobs // homeBuildJobs;
|
||||||
|
|
||||||
ci.gh-actions.checkoutOptions = {
|
ci.gh-actions.checkoutOptions = {
|
||||||
fetch-depth = 0;
|
fetch-depth = 0;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ in {
|
||||||
enable =
|
enable =
|
||||||
mkEnableOption "build via CI"
|
mkEnableOption "build via CI"
|
||||||
// {
|
// {
|
||||||
default = config.type == "NixOS" && config.system == "x86_64-linux";
|
default = config.system == "x86_64-linux";
|
||||||
};
|
};
|
||||||
allowFailure = mkOption {
|
allowFailure = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue