I’m trying to use nix-gaming on NixOS, but when I configure it no matter what I change it prompts:
error: undefined variable 'inputs'
at /nix/store/vmrjamh31agjwv6r559xaqv64n7qj586-source/home.nix:108:5:
107| # fufexan/nix-gaming
108| inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin
| ^
109| ];
I don’t know much about Nix yet, can anyone tell me how to modify it?
Here’s some of the configuration:
# flake.nix
{
description = "A simple NixOS flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nix-gaming.url = "github:fufexan/nix-gaming";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
nixosConfigurations.Frac2s = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.weeds = import ./home.nix;
home-manager.extraSpecialArgs = {inherit inputs;};
}
];
};
};
}
# home.nix
{ config, pkgs, ... }:
{
home.username = "weeds";
home.homeDirectory = "/home/weeds";
home.packages =
with pkgs;[
(some pkgs here)
] ++ [
# fufexan/nix-gaming
inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin
];
};
home.stateVersion = "25.05";
}
If anyone can help me, I’d be very grateful.