Fixed the flake to not need branches.

This commit is contained in:
vorboyvo 2024-07-11 12:43:40 -04:00
parent bde883ccf6
commit 08f9837fe1

View file

@ -20,13 +20,21 @@
# nur.url = "github:nix-community/NUR"; # nur.url = "github:nix-community/NUR";
}; };
outputs = { self, nixpkgs, home-manager }: outputs =
{
self,
nixpkgs,
home-manager,
}:
let let
system = "x86_64-linux"; system = "x86_64-linux";
hostname = "de-lacadie"; in
in { {
nixosConfigurations = { nixosConfigurations =
${hostname} = nixpkgs.lib.nixosSystem { let
hostnameToConfig = hostname: {
name = hostname;
value = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
./hosts/${hostname}/configuration.nix ./hosts/${hostname}/configuration.nix
@ -35,5 +43,12 @@
]; ];
}; };
}; };
in
builtins.listToAttrs (
builtins.map hostnameToConfig [
"randolph"
"de-lacadie"
]
);
}; };
} }