Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: CI

on:
push:

jobs:
# treefmt:
# name: treefmt
Expand All @@ -15,7 +13,6 @@ jobs:
# name: sno2wman
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# - run: nix-shell --run "treefmt --fail-on-change"

flake-check:
name: flake-check
runs-on: ubuntu-latest
Expand All @@ -24,6 +21,6 @@ jobs:
- uses: cachix/install-nix-action@v17
- uses: cachix/cachix-action@v10
with:
name: sno2wman
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
name: sno2wman
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check
3 changes: 0 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,7 +18,6 @@ jobs:
- run: nix build ".#github-page"
- run: cp -r --dereference --no-preserve=mode,ownership result/ _site/
- uses: actions/upload-pages-artifact@v1

deploy:
runs-on: ubuntu-latest
needs: build
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00

jobs:
lockfile:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"markdown",
"nix",
"satysfi",
"toml"
"toml",
"yaml"
]
}
],
Expand All @@ -35,6 +36,9 @@
"[satysfi]": {
"editor.defaultFormatter": "jkillian.custom-local-formatters"
},
"[yaml]": {
"editor.defaultFormatter": "jkillian.custom-local-formatters"
},
"editor.unicodeHighlight.allowedCharacters": {
",": true,
".": true,
Expand Down
190 changes: 189 additions & 1 deletion flake.lock

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

17 changes: 10 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@

satysfi-formatter.url = "github:SnO2WMaN/satysfi-formatter/nix-integrate";
satysfi-language-server.url = "github:SnO2WMaN/satysfi-language-server/nix-integrate";

yamlfmt.url = "github:SnO2WMaN/yamlfmt/nix-intgl";
};

outputs = {
self,
nixpkgs,
flake-utils,
devshell,
satysfi-formatter,
satysfi-language-server,
...
} @ inputs:
{
Expand All @@ -41,11 +41,13 @@
overlays = [
devshell.overlay
self.overlays.default
(final: prev: {
satysfi-language-server = satysfi-language-server.packages.${system}.satysfi-language-server;
satysfi-formatter = satysfi-formatter.packages.${system}.satysfi-formatter;
satysfi-formatter-write-each = satysfi-formatter.packages.${system}.satysfi-formatter-write-each;
})
(final: prev:
with inputs; {
satysfi-language-server = satysfi-language-server.packages.${system}.satysfi-language-server;
satysfi-formatter = satysfi-formatter.packages.${system}.satysfi-formatter;
satysfi-formatter-write-each = satysfi-formatter.packages.${system}.satysfi-formatter-write-each;
yamlfmt = yamlfmt.packages.${system}.yamlfmt;
})
];
};
in {
Expand Down Expand Up @@ -111,6 +113,7 @@
satysfi
satysfi-language-server
satysfi-formatter-write-each
yamlfmt
]
);
};
Expand Down
4 changes: 4 additions & 0 deletions treefmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ command = "dprint"
options = ["fmt"]
includes = ["*.json", "*.toml", "*.md"]

[formatter.yamlfmt]
command = "yamlfmt"
includes = ["*.yml", "*.yaml"]

[formatter.satysfi-fmt]
command = "satysfi-fmt-write-each"
includes = ["*.saty", "*.satyh"]