fix: use first nixosConfiguration instead of hardcoded name

This commit is contained in:
Moritz Böhme 2024-11-08 19:41:56 +01:00
parent 05e34bcfc9
commit e93f7ce742
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -18,7 +18,7 @@ in
};
options = {
nixos = {
expr = ''(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.nixos-desktop.options'';
expr = ''builtins.head (builtins.attrValues ((builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations).options'';
};
"flake-parts" = {
expr = ''(builtins.getFlake ("git+file://" + toString ./.)).debug.options'';