update pre-commit, add formatter to hydra, remove overlays

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-04-13 13:12:19 -04:00 committed by Alice Huston
parent dfdc52b254
commit b54a21cac5

View File

@ -133,7 +133,7 @@
forEachSystem = lib.genAttrs systems; forEachSystem = lib.genAttrs systems;
overlayList = [ overlayList = [
self.overlays.default #self.overlays.default
nix.overlays.default nix.overlays.default
]; ];
pkgsBySystem = forEachSystem ( pkgsBySystem = forEachSystem (
@ -185,7 +185,7 @@
repos = [ repos = [
{ {
repo = "https://gitlab.com/vojko.pribudic/pre-commit-update"; repo = "https://gitlab.com/vojko.pribudic/pre-commit-update";
rev = "bd6e40ff90e582fcb7b81ffafdf41f9d6cac7131"; rev = "b7da6528a10087d485530e3f335bb2914b05c13e";
hooks = [ hooks = [
{ {
id = "pre-commit-update"; id = "pre-commit-update";
@ -217,9 +217,6 @@
in in
{ {
formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style); formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
overlays.default = final: prev: {
nixpkgs-fmt = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
};
nixosConfigurations = nixosConfigurations =
let let
@ -373,12 +370,7 @@
) )
); );
}) (builtins.attrValues self.nixosConfigurations)) }) (builtins.attrValues self.nixosConfigurations))
++ [ ++ [self.formatter]
# not fully sure what this is for but it breaks with nixfmt
# (forEachSystem (system: {
# ${nixpkgs.legacyPackages.${system}.nixfmt-rfc-style.name} = pkgsBySystem.${system}.${nixpkgs.legacyPackages.${system}.nixfmt-rfc-style.name};
# }))
]
) )
); );
} }