Commit graph

74 commits

Author SHA1 Message Date
awwpotato
69b3dd05e6
stylix: bump release to 25.11 (#1317)
Closes: https://github.com/nix-community/stylix/issues/1315
Link: https://github.com/nix-community/stylix/pull/1317

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-20 19:27:39 +00:00
Daniel Thwaites
f8833c5e0c
treewide: update documentation links (#1314)
Link: https://github.com/nix-community/stylix/pull/1314

Co-authored-by: pancho horrillo <pancho@pancho.name>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-19 19:30:20 +02:00
Daniel Thwaites
5f6f08daad
treewide: change repository owner to nix-community (#1297) 2025-05-18 03:06:05 +01:00
awwpotato
101d23dfac
ci: fix dependabot backport label (#1288)
Link: https://github.com/danth/stylix/pull/1288
2025-05-16 17:22:12 -07:00
dependabot[bot]
4d68f1f761 ci: bump DeterminateSystems/update-flake-lock from 24 to 25
Bumps [DeterminateSystems/update-flake-lock](https://github.com/determinatesystems/update-flake-lock) from 24 to 25.
- [Release notes](https://github.com/determinatesystems/update-flake-lock/releases)
- [Commits](https://github.com/determinatesystems/update-flake-lock/compare/v24...v25)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-version: '25'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-16 17:07:20 -07:00
awwpotato
8b015b5fa0
flake: use flake-parts (#1208)
Link: https://github.com/danth/stylix/pull/1208

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-16 11:52:15 -07:00
awwpotato
ad7dcca79d
ci: add labeler action (#1137)
Link: https://github.com/danth/stylix/discussions/1109
Link: https://github.com/danth/stylix/pull/1137

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-11 18:05:19 +02:00
awwpotato
a2b80b9006
doc: direct to all issues instead of open ones in issue templates (#1232)
Link: https://github.com/danth/stylix/pull/1232

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-05-06 10:16:07 +02:00
awwpotato
b4d3137c5c
ci: use format for flake update title (#1197)
Link: https://github.com/danth/stylix/pull/1197
2025-04-30 19:05:48 -07:00
awwpotato
7476be8b0b
ci: fix stable pr title for update flake (#1196)
Link: https://github.com/danth/stylix/pull/1196
2025-04-30 19:00:49 -07:00
awwpotato
245a167c75
ci: backport dependabot by default (#1149) 2025-04-25 13:35:17 +01:00
dependabot[bot]
2177469520 ci: bump DeterminateSystems/nix-installer-action from 16 to 17
Bumps [DeterminateSystems/nix-installer-action](https://github.com/determinatesystems/nix-installer-action) from 16 to 17.
- [Release notes](https://github.com/determinatesystems/nix-installer-action/releases)
- [Commits](https://github.com/determinatesystems/nix-installer-action/compare/v16...v17)

---
updated-dependencies:
- dependency-name: DeterminateSystems/nix-installer-action
  dependency-version: '17'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-24 17:31:12 -07:00
awwpotato
9738ceb901
ci: fix update flake pr title condition (#1169) 2025-04-24 02:57:53 +00:00
awwpotato
a97dca14af
ci: fix update-flake pr-title syntax (#1166) 2025-04-24 03:34:05 +01:00
awwpotato
379ba613a6
ci: explicit permissions for github app token (#1132) 2025-04-13 11:40:57 +01:00
awwpotato
852207671f
ci: include release branch in update PR title (#1114) 2025-04-09 12:06:38 +01:00
dependabot[bot]
be86a9aadb ci: bump actions/create-github-app-token from 1 to 2
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1 to 2.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](https://github.com/actions/create-github-app-token/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: '2'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 17:49:09 -07:00
Daniel Thwaites
bb8af4c658
ci: skip adding Cachix for flake updates (#1108) 2025-04-05 21:24:28 +00:00
awwpotato
2cdfff2575
ci: run flake update on stable release (#1105) 2025-04-05 21:16:02 +00:00
awwpotato
2528e00e7c
ci: adjust flake update PR and commit messages (#1103)
Co-authored-by: Daniel Thwaites <danth@danth.me>
2025-04-05 21:03:31 +00:00
Daniel Thwaites
f3fee51f54
ci: remove github_actions label (#1102) 2025-04-05 20:34:33 +00:00
awwpotato
a6a467a7c1
ci: add flake update action (#1100) 2025-04-05 21:20:36 +01:00
dependabot[bot]
ac8dd8b1a6 ci: bump actions/create-github-app-token from 1 to 2
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1 to 2.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](https://github.com/actions/create-github-app-token/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: '2'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-03 19:21:27 -07:00
Flameopathic
194a91d001
doc: collapse flake.lock in GitHub bug template (#1059)
Link: https://github.com/danth/stylix/pull/1059

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-04-02 23:41:34 +02:00
NAHO
eede713515
ci: prevent unintentional credential persistence (#1074)
Link: https://woodruffw.github.io/zizmor/audits/#artipacked
2025-03-30 16:04:23 +01:00
Daniel Thwaites
20117a58eb
ci: run all builds in a single job (#1069)
This works around GitHub's limit on the number of matrix jobs (fixes
#947), by running all builds in a single job. To maintain some speed, we
use `nix-fast-build`, which uses multiple cores for evaluation, and skips
any builds for which the final derivation is already in a binary cache.

Although this makes the run for an individual pull request slower, the
amount of duplicated work is greatly reduced: previously, we often had
100 machines building the same derivation in parallel. This means that
more runners are available should there be multiple pull requests opened
in a short space of time, so there is less queuing. It's also more
energy efficient.

A potential downside is that the logs are all merged together, so it can
be hard to find what failed when lots of outputs were built.
`nix-fast-build` does report a list of failed attributes at the end of
the log, but this is currently broken:
https://github.com/Mic92/nix-fast-build/pull/98

The script used to launch `nix-fast-build` is also added to the
developer shell for local use. This replaces the old `nix-flake-check`
package (closes #898).

I also saw the opportunity to enable checks on `aarch64-linux` and
`aarch64-darwin` - as these are available as GitHub hosted runners.
2025-03-30 12:26:07 +01:00
Daniel Thwaites
8fce91704d
doc: add license check to PR template (#1072)
This serves as a reminder to check licenses properly. It's intentionally
vague to avoid giving wrong advice.
2025-03-29 23:09:03 +00:00
Daniel Thwaites
21b90991af
doc: improve maintainer subheading in PR template (#1071)
Made this not nested under "Things done", and replaced "CC" with
"Notify" for clarity.
2025-03-29 22:42:26 +00:00
Daniel Thwaites
61a5f77f22
doc: add contact links to issue template chooser (#1060)
Link: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#configuring-the-template-chooser
Link: https://github.com/danth/stylix/pull/1060

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-25 19:11:30 +01:00
awwpotato
5321ab0c76
doc: add GitHub PR template (#1038)
Add a relatively open-ended GitHub PR template, heavily inspired by the
Nixpkgs [1] and Home Manager [2] PR templates.

[1]: 9b94ad2d97/.github/PULL_REQUEST_TEMPLATE.md
[2]: c4d5d72805/.github/PULL_REQUEST_TEMPLATE.md

Link: https://github.com/danth/stylix/pull/1038

Reviewed-by: Flameopathic <64027365+Flameopathic@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-24 23:29:42 +01:00
Flameopathic
20349ced5c
doc: add GitHub issue templates (#921)
Closes: https://github.com/danth/stylix/issues/268
Link: https://github.com/danth/stylix/pull/921

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Co-authored-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-24 23:22:11 +01:00
dependabot[bot]
08e0c91d76 ci: bump cachix/cachix-action from 15 to 16
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 15 to 16.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v15...v16)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-14 11:28:38 +00:00
Daniel Thwaites
65c42633d4
ci: ignore Cachix errors (#952)
This commit allows CI jobs to degrade gracefully if Cachix has issues,
by skipping uploads and/or building packages from scratch rather than
failing the job.

This is in response to the recent failures on `master`, which appear to
be caused by a 502 (Bad Gateway) response while uploading some of the
build results.
2025-03-04 13:32:05 +00:00
Daniel Thwaites
b273375e6c
ci: add Cachix cache (#919)
This will improve CI performance, and may also be used locally,
although this is not officially documented at this time.

I tested the required amount of space by building a `pkgs.linkFarm`
containing all testbeds, then manually pushing this to an empty Cachix
cache.

The total space used was 274 MiB of the 5 GiB free allowance, so
Cachix is good enough to cache at least 20 commits of history,
assuming the worst case scenario of every commit changing
every derivation we build.

Fixes #880
2025-02-26 15:49:42 +00:00
Flameopathic
c8e4a0d218
treewide: optionalize stylix.image option (#717)
Optionalize the stylix.image option when stylix.base16Scheme is set,
making the following Stylix configurations valid:

    [
      // Now it possible to set 'stylix.image = null', if
      // stylix.base16Scheme is set.
      {
        base16Scheme = /* ... */;
      }

      // This configuration was already possible.
      {
        image = /* ... */;
      }

      // This configuration was already possible.
      {
        base16Scheme = /* ... */;
        image = /* ... */;
      }
    ]

Closes: https://github.com/danth/stylix/issues/200
Closes: https://github.com/danth/stylix/issues/442
Link: https://github.com/danth/stylix/pull/717

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-02-24 15:13:57 +01:00
NAHO
689fd55ff2
ci: make get-derivations job fail when input command fails (#888)
Make the get-derivations job fail when the command writing to the
$GITHUB_OUTPUT file fails.

Previously, the $GITHUB_OUTPUT file was successfully created when the
input command failed, resulting in an empty $GITHUB_OUTPUT file. [1]

[1]: https://stackoverflow.com/questions/59287865
2025-02-23 17:13:26 +00:00
Bernardo Meurer
d8289c3f0e
ci: disable IFD (#855)
Disable IFD in the CI to prevent regressions mentioned in commit
e72aa84da1 ("{vencord,vesktop}: revert attempt to support fonts
(#844)").

Link: https://github.com/danth/stylix/pull/855

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-02-11 22:32:56 +01:00
Daniel Thwaites
7c1c325928
ci: remove Magic Nix Cache (#745)
Magic Nix Cache will no longer work with the GitHub Actions cache
as of February 1st [1].

Temporarily removing this while we look into alternative solutions.

[1] https://determinate.systems/posts/magic-nix-cache-free-tier-eol/
2025-01-25 19:28:01 +00:00
NAHO
0a20c8d0ed
ci: standardize output redirection formatting (#756) 2025-01-12 16:15:05 +00:00
NAHO
8be9e8ad9a
ci: update Ubuntu runner to ubuntu-24.04 in Backport workflow
Fixes: fe72c2306f ("ci: update Ubuntu runner to ubuntu-24.04")
2025-01-06 23:29:45 +01:00
NAHO
0db7d025ed
ci: lock Ubuntu runner to ubuntu-22.04 in Backport workflow
Fixes: 1aa931f6f1 ("ci: lock workflow dependencies to increase reproducibility")
2025-01-06 23:27:19 +01:00
NAHO
284c5b0357
ci: run CI on PRs and limit push event to protected branches (#751)
Run the CI on PRs, while preventing it from running twice for non-fork
PRs by limiting the push event to protected branches. [1]

This restores the workflow trigger that was accidentally modified in
commit 2b85a56235 ("ci: simplify workflows").

[1]: https://github.com/danth/stylix/pull/749#issuecomment-2573437938
2025-01-06 21:39:22 +00:00
NAHO
4ceede7504
ci: prevent the Check workflow from running duplicated checks outputs
Prevent the Check workflow from running duplicated checks outputs.

The jq query should now be faster and arguably more readable.

Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
d3bdbf0c5b
treewide: add and apply yamllint pre-commit hook
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
2b85a56235
ci: simplify workflows
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
fe72c2306f
ci: update Ubuntu runner to ubuntu-24.04
Link: https://github.com/actions/runner-images/issues/10636
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
1aa931f6f1
ci: lock workflow dependencies to increase reproducibility
Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
NAHO
0d0af5f442
ci: consolidate Build and Lint workflows into single Check workflow
Consolidate the separate Build and Lint workflows into a unified Check
workflow, as linting is now integrated into the build process.

Link: https://github.com/danth/stylix/pull/519
2025-01-04 17:45:52 +01:00
Daniel Thwaites
ccee633284
ci: prevent unexpected flake.nix and flake.lock inconsistencies (#674)
Prevent some unexpected flake.nix and flock.lock revision
inconsistencies by building configurations with the
--no-update-lock-file option:

> --no-update-lock-file
>
> Do not allow any updates to the flake's lock file.
>
> -- nix3-build(1)

Link: https://github.com/danth/stylix/pull/674

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2024-12-12 15:09:08 +01:00
Daniel Thwaites
5a69e8c657
ci: fix typo in target branch placeholder 2024-12-10 14:40:28 +00:00