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,20 +20,35 @@
# 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
inherit system; hostnameToConfig = hostname: {
modules = [ name = hostname;
./hosts/${hostname}/configuration.nix value = nixpkgs.lib.nixosSystem {
home-manager.nixosModules.home-manager inherit system;
# nur.nixosModules.nur modules = [
]; ./hosts/${hostname}/configuration.nix
}; home-manager.nixosModules.home-manager
}; # nur.nixosModules.nur
];
};
};
in
builtins.listToAttrs (
builtins.map hostnameToConfig [
"randolph"
"de-lacadie"
]
);
}; };
} }