Skip to content

Commit

Permalink
flake.nix: add formatter
Browse files Browse the repository at this point in the history
CI: use nix fmt instead of alejandra command
  • Loading branch information
fufexan committed Jun 20, 2022
1 parent 8ba9d6a commit 8844795
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -30,7 +30,7 @@ jobs:
matrix:
command:
- 'nix flake check'
- 'nix run nixpkgs#alejandra -- -c .'
- 'nix fmt'
steps:
- uses: actions/checkout@v3.0.2
- uses: cachix/install-nix-action@v17
Expand Down
2 changes: 2 additions & 0 deletions flake.nix
Expand Up @@ -27,6 +27,8 @@

nixosModules.pipewireLowLatency = import ./modules/pipewireLowLatency.nix;
nixosModules.default = inputs.self.nixosModules.pipewireLowLatency;

formatter = lib.genSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
};

# auto-fetch deps when `nix run/shell`ing
Expand Down

0 comments on commit 8844795

Please sign in to comment.