Skip to content

Commit

Permalink
#15 install alejandra in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
number5 committed Feb 13, 2023
1 parent eed211d commit 19daeac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/home.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Check Nix Flake

on:
Expand Down Expand Up @@ -31,6 +32,9 @@ jobs:
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- name: "Install Alejandra "
run: nix profile install github:kamadorueda/alejandra/3.0.0

- name: "check nix flake"
run: nix flake check --show-trace

Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}: {
# make pkgs available to all `perSystem` functions
_module.args.pkgs = inputs'.nixpkgs.legacyPackages;

formatter = config.treefmt.build.wrapper;
};
# CI
Expand Down
11 changes: 5 additions & 6 deletions home/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
extraModules ? [],
system ? "x86_64-linux",
}: (inputs.home-manager.lib.homeManagerConfiguration {

pkgs = import self.inputs.nixpkgs {
inherit system;
# overlays = [self.overlays.default];
config.allowUnfree = true;
};
pkgs = import self.inputs.nixpkgs {
inherit system;
# overlays = [self.overlays.default];
config.allowUnfree = true;
};
modules = [
{
_module.args.self = self;
Expand Down
2 changes: 1 addition & 1 deletion treefmt.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# One CLI to format the code tree - https://github.com/numtide/treefmt
[formatter.nix]
command = "/Users/bruce.wang/bin/alejandra"
command = "alejandra"
includes = ["*.nix"]

0 comments on commit 19daeac

Please sign in to comment.