set up treefmt action

This commit is contained in:
2025-02-08 18:06:10 -05:00
parent 300aa1f032
commit aa4a11c0c3
5 changed files with 19 additions and 2 deletions

View File

@@ -20,6 +20,4 @@ jobs:
- name: Build default package
run: "nixos-rebuild build --flake ./#${{ matrix.system }}"
- name: copy to nix-cache
env:
NIX_SSHOPTS: "-vvvv"
run: nix copy --to ssh://jeeves .#nixosConfigurations.${{ matrix.system }}.config.system.build.toplevel

15
.github/workflows/treefmt.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: build_systems
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
build:
name: nix fmt
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Build default package
run: "treefmt --ci"

View File

@@ -241,6 +241,7 @@
"topsites",
"topstories",
"torrenting",
"treefmt",
"twimg",
"uaccess",
"ublock",

View File

@@ -79,8 +79,10 @@ in
user = "github-runners";
group = "github-runners";
extraPackages = with pkgs; [
nixfmt-rfc-style
nixos-rebuild
openssh
treefmt
];
};
users = {

View File

@@ -51,6 +51,7 @@
nix-prefetch
nix-tree
nixfmt-rfc-style
treefmt
inputs.system_tools.packages.x86_64-linux.default
];
}