Instead of using the packages output, you can add the Fjord Launcher overlay to your nixpkgs instance. This ensures Fjord is built using your system's specific package versions.
Warning: Using an overlay may result in binaries that differ from the official packages output, which means you will not be able to use the Cachix binary cache.
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
fjordlauncher = {
url = "github:unmojang/FjordLauncher";
# Optional: Override the nixpkgs input of fjordlauncher to use the same revision as the rest of your flake
# inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ nixpkgs, fjordlauncher, ... }:
{
nixosConfigurations.foo = nixpkgs.lib.nixosSystem {
modules = [
./configuration.nix
(
{ pkgs, ... }:
{
nixpkgs.overlays = [ fjordlauncher.overlays.default ];
environment.systemPackages = [ pkgs.fjordlauncher ];
}
)
];
};
};
}