Skip to content

Commit

Permalink
Adopt Project Manager and Nixpkgs 23.11
Browse files Browse the repository at this point in the history
  • Loading branch information
sellout committed Dec 2, 2023
1 parent 3ea3efc commit b4e2571
Show file tree
Hide file tree
Showing 21 changed files with 1,189 additions and 306 deletions.
7 changes: 7 additions & 0 deletions .cache/git/config

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .cache/git/hooks/pre-push

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .cache/vale/Vocab/elisp-reader/accept.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .config/emacs/.dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
;; TODO: We have to be careful what variables we set here. Some can cause the
;; Eldev linters to not read the settings here. See emacs-eldev/eldev#83.
((nil
(fill-column . 80)
(indent-tabs-mode . nil)
(sentence-end-double-space . t)))
9 changes: 9 additions & 0 deletions .config/mustache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
project:
description: >-
This makes it possible to define syntax extensions, similar to what can
be done in Common Lisp with `set-macro-character`.
name: "elisp-reader"
repo: "sellout/elisp-reader.el"
summary: "A custom Lisp reader written in Elisp"
version: "0.1.0"
type: { name: "emacs-lisp" }
77 changes: 77 additions & 0 deletions .config/project/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{config, flaky, lib, ...}: {
project = {
name = "elisp-reader";
summary = "A custom Lisp reader written in Elisp";
};

## dependency management
services.renovate.enable = true;

## development
programs = {
direnv.enable = true;
# This should default by whether there is a .git file/dir (and whether it’s
# a file (worktree) or dir determines other things – like where hooks
# are installed.
git = {
enable = true;
ignores = [
# Compiled
"*.elc"
# Packaging
"/.eldev"
];
};
};

## formatting
editorconfig.enable = true;
## See the file for why this needs to force a different version.
project.file.".dir-locals.el".source = lib.mkForce ../emacs/.dir-locals.el;
programs = {
treefmt = {
enable = true;
## In elisp repos, we prefer Org over Markdown, so we don’t need this
## formatter.
programs.prettier.enable = lib.mkForce false;
};
vale = {
enable = true;
excludes = [
"*.el"
"./.github/settings.yml"
"./Eldev"
];
vocab.${config.project.name}.accept = [
"Eldev"
];
};
};

## CI
services.garnix = {
enable = true;
builds.exclude = [
# TODO: Remove once garnix-io/garnix#285 is fixed.
"homeConfigurations.x86_64-darwin-${config.project.name}-example"
];
};
## FIXME: Shouldn’t need `mkForce` here (or to duplicate the base contexts).
## Need to improve module merging.
services.github.settings.branches.main.protection.required_status_checks.contexts =
lib.mkForce
(lib.concatMap flaky.lib.garnixChecks [
(sys: "check elisp-doctor [${sys}]")
(sys: "check elisp-lint [${sys}]")
(sys: "homeConfig ${sys}-${config.project.name}-example")
(sys: "package default [${sys}]")
(sys: "package emacs-${config.project.name} [${sys}]")
## FIXME: These are duplicated from the base config
(sys: "check formatter [${sys}]")
(sys: "devShell default [${sys}]")
]);

## publishing
services.flakehub.enable = true;
services.github.enable = true;
}
29 changes: 13 additions & 16 deletions .editorconfig

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .envrc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .github/renovate.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .github/settings.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions .github/workflows/flakehub-publish.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .github/workflows/update-nix-lockfile.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 5 additions & 9 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .vale.ini

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b4e2571

Please sign in to comment.