mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
flake: add formatter attribute in the output
This commit is contained in:
parent
569c258e51
commit
3002c765a3
@ -85,6 +85,9 @@ Though, these are just templates mostly for my own purposes so it is not as usef
|
|||||||
* `lib` is defined from link:./lib/[my custom library].
|
* `lib` is defined from link:./lib/[my custom library].
|
||||||
It's another unnecessary export but it's there.
|
It's another unnecessary export but it's there.
|
||||||
|
|
||||||
|
* `formatter` is the preferred formatter to be used for my Nix files.
|
||||||
|
Nothing special here.
|
||||||
|
|
||||||
|
|
||||||
=== The remote repo
|
=== The remote repo
|
||||||
|
|
||||||
|
@ -341,5 +341,10 @@
|
|||||||
description = "Basic development shell template";
|
description = "Basic development shell template";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# No amount of formatters will make this codebase nicer but it sure does
|
||||||
|
# feel like it does.
|
||||||
|
formatter =
|
||||||
|
forAllSystems (system: nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user