summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-07-04 15:55:29 -0400
committerseth <[email protected]>2024-07-04 16:11:35 -0400
commit3231025b71b827be26daaf3f082b0be48ab66c2e (patch)
tree152ac0a23982032a77047571c34aeaef7608a931 /flake.nix
parent098ff8c13c5b144079917f9da81cf6503056872b (diff)
nix: alejandra -> nixfmt-rfc-style
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix100
1 files changed, 51 insertions, 49 deletions
diff --git a/flake.nix b/flake.nix
index 9450302..a10ed5b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -6,57 +6,59 @@
flake-checks.url = "github:getchoo/flake-checks";
};
- outputs = {
- self,
- nixpkgs,
- flake-checks,
- }: let
- systems = [
- "x86_64-linux"
- "aarch64-linux"
- "x86_64-darwin"
- "aarch64-darwin"
- ];
+ outputs =
+ {
+ self,
+ nixpkgs,
+ flake-checks,
+ }:
+ let
+ systems = [
+ "x86_64-linux"
+ "aarch64-linux"
+ "x86_64-darwin"
+ "aarch64-darwin"
+ ];
- forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
- in {
- checks = forAllSystems (pkgs: let
- flake-checks' = flake-checks.lib.mkChecks {
- root = ./.;
- inherit pkgs;
- };
- in {
- inherit
- (flake-checks')
- actionlint
- alejandra
- deadnix
- statix
- ;
- });
+ forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
+ in
+ {
+ checks = forAllSystems (
+ pkgs:
+ let
+ flake-checks' = flake-checks.lib.mkChecks {
+ root = ./.;
+ inherit pkgs;
+ };
+ in
+ {
+ inherit (flake-checks')
+ actionlint
+ alejandra
+ deadnix
+ statix
+ ;
+ }
+ );
- devShells = forAllSystems ({
- pkgs,
- system,
- ...
- }: {
- default = import ./shell.nix {
- inherit pkgs system;
- formatter = self.formatter.${system};
- };
- });
+ devShells = forAllSystems (
+ { pkgs, system, ... }:
+ {
+ default = import ./shell.nix {
+ inherit pkgs system;
+ formatter = self.formatter.${system};
+ };
+ }
+ );
- formatter = forAllSystems (pkgs: pkgs.alejandra);
+ formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
- packages = forAllSystems ({
- pkgs,
- system,
- ...
- }: let
- pkgs' = import ./. {
- inherit pkgs system;
- };
- in
- pkgs' // {default = pkgs'.website;});
- };
+ packages = forAllSystems (
+ { pkgs, system, ... }:
+ let
+ pkgs' = import ./. { inherit pkgs system; };
+ in
+ pkgs' // { default = pkgs'.website; }
+ );
+ };
}