1
0
mirror of https://github.com/Andrey0189/nixos-config-reborn.git synced 2025-09-15 10:06:00 +03:00

this is genious

This commit is contained in:
andrey_varnavskiy
2024-11-29 20:42:28 +05:00
parent 9a2a1d0599
commit 07192181da

View File

@@ -38,11 +38,10 @@
};
in {
nixosConfigurations = {
${builtins.elemAt hosts 0} = makeSystem {
hostname = builtins.elemAt hosts 0;
};
};
nixosConfigurations = nixpkgs.lib.foldl' (configs: hostname:
configs // {
"${hostname}" = makeSystem { inherit hostname; };
}) {} hosts;
homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.${system};