Replace lib' with self.lib

This commit is contained in:
SebastianStork 2026-01-16 14:09:34 +01:00
parent 07c46beefb
commit 8ba17ac1ce
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI
10 changed files with 25 additions and 31 deletions

View file

@ -5,12 +5,10 @@
...
}:
let
lib' = self.lib;
mkHost =
hostName:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs self lib'; };
specialArgs = { inherit inputs self; };
modules = [
{ networking = { inherit hostName; }; }
"${self}/hosts/common.nix"
@ -31,13 +29,13 @@ let
self.nixosConfigurations.${hostname};
};
hostNames = "${self}/hosts" |> lib'.listDirectoryNames;
hostNames = "${self}/hosts" |> self.lib.listDirectoryNames;
in
{
flake = {
nixosConfigurations = hostNames |> lib'.genAttrs mkHost;
nixosConfigurations = hostNames |> self.lib.genAttrs mkHost;
deploy.nodes = hostNames |> lib'.genAttrs mkDeployNode;
deploy.nodes = hostNames |> self.lib.genAttrs mkDeployNode;
checks = inputs.deploy-rs.lib |> lib.mapAttrs (_: deployLib: deployLib.deployChecks self.deploy);
};