diff --git a/templates/new-clan/flake.nix b/templates/new-clan/flake.nix index 7687075e2..4493397b6 100644 --- a/templates/new-clan/flake.nix +++ b/templates/new-clan/flake.nix @@ -3,15 +3,15 @@ inputs.clan-core.url = "git+https://git.clan.lol/clan/clan-core"; - outputs = { clan-core, nixpkgs, ... }: + outputs = { self, clan-core, ... }: let system = "x86_64-linux"; - pkgs = nixpkgs.legacyPackages.x86_64-linux; + pkgs = clan-core.inputs.nixpkgs.legacyPackages.${system}; in { # all machines managed by cLAN nixosConfigurations = clan-core.lib.buildClan { - directory = ./.; + directory = self; }; # add the cLAN cli tool to the dev shell devShells.${system}.default = pkgs.mkShell {