Austin Horstman
426b405d97
ci: add validation workflow for maintainers list
...
We need to make sure that we don't insert invalid maintainers otherwise
it breaks the RFC39 invite workflow. Check that we have valid nix and
the required attributes are able to be parsed properly.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-02 22:25:47 -05:00
Austin Horstman
66de606f48
ci: update all-maintainers on merge
...
We want to update the master list for RFC39 invites on master after a
change is merged in.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-02 22:25:47 -05:00
Austin Horstman
25f003f8a9
ci: tag maintainers automatically for PR reviews ( #6921 )
...
Want to create an easier way to notify maintainers that someone is
working on their module. Added a workflow for requesting a review from any maintainers that have joined the `home-manager-maintainers` team in the organization.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-02 14:45:27 -05:00
Austin Horstman
9347c61bc0
ci: use GITHUB_TOKEN when app config missing ( #7374 )
...
Allow testing workflows more on forks when app configuration missing.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-02 12:17:42 -05:00
Matt Sturgeon
a7820832c6
ci: fix update-maintainers indentation ( #7372 )
...
Fixes a regression from be8f7e100f
2025-07-02 11:44:16 -05:00
Matt Sturgeon
bafcf33687
ci: use env in update-maintainers changes summary
...
Use env variables in the changes summary, to avoid string escape issues
with injecting template strings directly into the script.
2025-07-02 11:25:16 -05:00
Matt Sturgeon
be8f7e100f
ci: move update-maintainers commit/pr to env
...
Define the commit & PR title and body in env variables to make the
script itself more readable and avoid any string escape issues.
2025-07-02 11:25:16 -05:00
Matt Sturgeon
7241b18a7b
ci: make update-maintainers check-changes multiline
...
Use yaml's multiline string syntax for check-changes's run script.
2025-07-02 11:25:16 -05:00
Austin Horstman
3d243d4a16
ci: fix which branch to show on pr ( #7368 )
...
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-02 08:45:36 -05:00
Austin Horstman
77027882a7
ci: prefix flake update prs ( #7366 )
...
Make it easier to distinguish which flake.lock update a pr is for.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-02 08:41:10 -05:00
Austin Horstman
4bd4634525
ci: fix update-flake branch inputs ( #7345 )
...
Help with allowing multiple Prs from actions to different branches.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-02 08:25:53 -05:00
Austin Horstman
29d717aab5
ci: tests fetch nixpkgs from flake.lock rev
...
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-01 23:03:57 -05:00
Austin Horstman
212f4a4fb2
ci: update-maintainers fetch nixpkgs from flake.lock rev
...
We need a nixpkgs on NIX_PATH. Right now we have been using the latest
from channel. But, we can actually just fetch the nixpkgs from our
flake.lock by parsing the flake.lock.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-01 23:03:57 -05:00
Austin Horstman
e96a8a325c
ci: conditional test step runs ( #7358 )
...
Not every PR requires the overhead of spinning up runners and running
our entire test suite. Filter on paths affected and only run the
relevant steps.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-01 18:11:29 -05:00
Austin Horstman
5d2f3e3e7f
ci: fix update-maintainers reference location ( #7357 )
...
Moved from scripts to lib/python and forgot to update action
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-01 16:59:53 -05:00
Austin Horstman
77bb9e033b
ci: add update-maintainers.yml
...
Create workflow for updating maintainers list.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-01 16:30:06 -05:00
awwpotato
76d0c31fce
formatter: add deadnix ( #7331 )
2025-06-28 16:28:39 -05:00
Austin Horstman
951f0b30c5
ci: schedule release flake lock updates ( #7325 )
...
Currently only running on the master branch. But, we can schedule on the
release branch, as well.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-24 14:54:56 -05:00
Austin Horstman
05b8c95064
ci: home-manager switch test aginst codebase
...
Right now, we grab the latest home-manager pushed to remote. We need to
test against the code we are pushing out.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-23 09:59:09 -05:00
Austin Horstman
4c9e99e8e8
ci: disable home-manager install tests on darwin
...
nix broken on latest channel update
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00
Austin Horstman
83030f0e4a
ci: labeler issues permission ( #7278 )
...
Should resolve issue with needing to create labels.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-15 18:38:09 -05:00
Matthieu Coudron
8fabeb9c14
fix meli eval warning ( #7267 )
2025-06-14 23:06:00 +02:00
Austin Horstman
faeab32528
ci: fix bars labeler ( #7253 )
...
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-11 10:53:11 -05:00
Austin Horstman
5adc1a51a2
ci: use flake lock for tests
...
Ensure we don't have surprise breakages and can test against a specific
lock file.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-02 22:58:05 -05:00
Matt Sturgeon
6abf27943b
ci: set a more useful update PR body
...
The default body contains instructions for triggering GitHub Actions,
which aren't relevant when pushing the PR as a GitHub App.
2025-06-01 16:03:59 -05:00
Matt Sturgeon
9882f43f9b
ci: switch to a GitHub App
...
This will do actions as a bot user, but will still trigger CI.
Its tokens are short lived, so more secure than a PAT that doesn't
expire.
2025-06-01 16:03:59 -05:00
Austin Horstman
cc8896c321
ci: remove literalExpression step
...
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-05-31 00:01:48 -05:00
Austin Horstman
7ccda8574f
ci: labels dedupe and reorganize
...
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-05-30 23:41:50 -05:00
Austin Horstman
5118087a15
ci: sort label categories
...
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-05-30 23:41:50 -05:00
Austin Horstman
b6bd7c629f
ci: add more modules to labeler
...
Lots of missing modules from existing categories. Adding some more.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-05-30 23:41:50 -05:00
Matt Sturgeon
6d09fd37a7
ci: alternative fix for backport if condition ( #7169 )
...
Can't access secrets from if condition, so we'll explicitly check this
isn't a fork.
2025-05-30 20:28:34 -05:00
Austin Horstman
b65126fa71
ci: fix backport if condition ( #7167 )
...
Can't access secrets from if condition.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-05-30 19:26:52 -05:00
Matt Sturgeon
7c60ea0296
ci: add 'GitHub App' TODO to update workflow
...
Using a GitHub App is more secure and idiomatic than using a
Personal Access Token or SSH Deploy Key.
See https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
and https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#authenticating-with-github-app-generated-tokens
2025-05-30 18:40:49 -05:00
Matt Sturgeon
9d2ae59579
ci: add backport workflow
...
Based on the workflow used by nixpkgs and others.
2025-05-30 18:40:49 -05:00
Sumner Evans
8fc1e46ab6
github: remove Sumner as automatic assignee on issues ( #7122 )
...
Signed-off-by: Sumner Evans <me@sumnerevans.com>
2025-05-24 15:42:23 -05:00
awwpotato
3f591550a9
formatter: remove script, add treefmt.toml + keep-sorted ( #7056 )
...
currently ./format does a bunch of stuff with git that was only necessary for nixfmt but not nixfmt-tree, so I deleted it (just use treefmt command directly instead). I also added keep sorted to keep the really long module lists sorted (already used in nixpkgs).
2025-05-20 12:42:51 -05:00
dependabot[bot]
45c2985644
ci: bump DeterminateSystems/update-flake-lock from 24 to 25 ( #7091 )
...
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-19 16:07:18 -05:00
awwpotato
8d832ddfda
foliate: init ( #7049 )
2025-05-13 12:05:32 -05:00
pancho horrillo
cbd8e8e9a0
PR_TEMPLATE: update example for module maintainer ( #7011 )
...
Update the permalink to show a version of the module that follows
current best practices (no `with lib;`, and nixfmt’d).
2025-05-09 08:21:59 -05:00
Andrew Marshall
708074ae6d
treewide: Prevent IFD by default
...
Import-from-derivation (IFD) has problematic performance, and is disabled in
Nixpkgs by policy. It is arguably good practice for libraries to avoid
it whenever possible, as it has poor ergonomics in some cases,
especially with dry builds, as it requires multiple eval+build phases.
As such, prevent its use in Home Manager by default by putting existing
tests that use IFD behind a config. In CI, run a first pass with IFD
disabled, skipping tests without the config. Then run a second pass with
IFD enabled and including tests with the config. This second pass will
also run tests without the config, but they should be cached from the
previous run, so the cost is not double (only eval time should be paid
twice). It’s necessary to change from using NMT’s `run` to `build` as
`run` itself uses IFD.
Of the tests that have the config:
- kitty/theme-to-themeFile: this is a test for deprecated config, and so
should be removed eventually anyway
- podman: the implementation relies on IFD to create individual systemd
units from the derivation output, and so it is not straightforward to
remove the IFD; doing so would require rethinking how the module works
to instead have the systemd unit files included as-is rather than as
individually configured units in the Nix config.
2025-05-07 10:34:18 -05:00
Robert Helgesson
1298a3418b
ci: remove release-24.05 from dependabot setup
2025-05-02 09:07:04 +02:00
awwpotato
59de2dfb0a
workflows: only run conflicts and update flake on main repo ( #6893 )
2025-04-23 11:25:45 -05:00
Matthieu Coudron
b99e3e46b8
ci: fixed redundant rule ( #6883 )
2025-04-22 17:52:24 -05:00
Matthieu Coudron
b925865c74
ci: label msmtp changes with "mail" ( #6881 )
2025-04-22 18:32:11 +02:00
awwpotato
be4e5ec62c
nix-init: add module ( #6864 )
...
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
2025-04-21 12:25:56 -05:00
awwpotato
496fa9c054
PR_TEMPLATE: mention nix fmt ( #6859 )
2025-04-20 18:05:56 -05:00
Austin Horstman
ae84885d9b
workflows/conflicts: init ( #6845 )
...
Add labeler for merge conflicts
2025-04-18 22:23:32 -05:00
Austin Horstman
307281bfda
labeler: expand labels ( #6846 )
...
Add rules, fill in missing files for existing rules.
2025-04-18 22:23:21 -05:00
Austin Horstman
760eed5959
flake.nix: remove treefmt-nix input ( #6782 )
...
Removing input until I have time to migrate usage to a dev flake for all
the dev dependencies.
2025-04-08 13:52:13 -05:00
Austin Horstman
5df48c4255
flake.nix: add formatter check
2025-04-08 08:50:05 -07:00