This commit is contained in:
parent
c98331150c
commit
3b62f99653
6 changed files with 139 additions and 4 deletions
20
.forgejo/workflows/lint.yaml
Normal file
20
.forgejo/workflows/lint.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Nix
|
||||
uses: https://guardianproject.dev/actions/install-nix-action@v15
|
||||
|
||||
- name: Run just lint
|
||||
run: nix-shell --run "just lint"
|
6
.markdownlint.json
Normal file
6
.markdownlint.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"MD033": false,
|
||||
"line_length": {
|
||||
"line_length": 92
|
||||
}
|
||||
}
|
7
Justfile
Normal file
7
Justfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
lint:
|
||||
markdownlint README.md
|
||||
nixfmt -c flake.nix
|
||||
|
||||
fmt:
|
||||
markdownlint --fix README.md
|
||||
nixfmt flake.nix
|
15
README.md
15
README.md
|
@ -5,7 +5,16 @@
|
|||
</h1>
|
||||
|
||||
<p align="center">
|
||||
<img alt="pronouns: he/him/his" src="https://img.shields.io/badge/pronouns-he/him/his-9fc5e8?style=flat-square">
|
||||
<a href="https://irl.xyz/"><img alt="Website" src="https://img.shields.io/website?url=https%3A//irl.xyz&style=flat-square"></a>
|
||||
<a href="https://www.openstreetmap.org/relation/58446"><img alt="ISO 3166: GB-SCT" src="https://img.shields.io/badge/ISO_3166-GB--SCT-005EB8?style=flat-square"></a>
|
||||
<img
|
||||
alt="pronouns: he/him/his"
|
||||
src="https://img.shields.io/badge/pronouns-he/him/his-9fc5e8?style=flat-square">
|
||||
<a href="https://irl.xyz/">
|
||||
<img alt="Website" src="https://img.shields.io/website?url=https%3A//irl.xyz&style=flat-square">
|
||||
</a>
|
||||
<a href="https://www.openstreetmap.org/relation/58446">
|
||||
<img alt="ISO 3166: GB-SCT" src="https://img.shields.io/badge/ISO_3166-GB--SCT-005EB8?style=flat-square">
|
||||
</a>
|
||||
<a href="https://orcid.org/0000-0003-4923-6156?style=flat-square">
|
||||
<img alt="ORCiD" src="https://img.shields.io/badge/ORCID-0000--0003--4923--6156-brightgreen">
|
||||
</a>
|
||||
</p>
|
61
flake.lock
generated
Normal file
61
flake.lock
generated
Normal file
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
"nodes": {
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1748190013,
|
||||
"narHash": "sha256-R5HJFflOfsP5FBtk+zE8FpL8uqE7n62jqOsADvVshhE=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "62b852f6c6742134ade1abdd2a21685fd617a291",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
32
flake.nix
Normal file
32
flake.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
in
|
||||
with pkgs;
|
||||
{
|
||||
devShells.default = mkShell {
|
||||
buildInputs = [
|
||||
git
|
||||
markdownlint-cli
|
||||
nixfmt-rfc-style
|
||||
just
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue