Open codingCoffee opened 8 months ago
Dug a little deeper, realized the problem was in my config. I need to explicitly mention which GPU config I'd like to use.
So, effectively my config became
{
description = "my flake!";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-23.11";
};
nixos-hardware = {
url = "github:NixOS/nixos-hardware/master";
};
};
outputs = { self, nixpkgs, ... }@inputs:
let
lib = nixpkgs.lib;
in
{
nixosConfigurations = {
zephyrus = lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs;};
modules = [
./configuration.nix
inputs.nixos-hardware.nixosModules.asus-zephyrus-ga402x.nvidia
];
};
};
};
}
The issue can be closed. But should this be fixed in flake.nix
file by splitting it into 2 lines to make it easier for a newcomer?
https://github.com/NixOS/nixos-hardware/blob/ad2fd7b978d5e462048729a6c635c45d3d33c9ba/flake.nix#L24
I'm trying to configure my Asus Zephyrus G14 GA402X laptop with viz this
Here is my
flake.nix
Ref: picked up the config from
https://github.com/NixOS/nixos-hardware/blob/ad2fd7b978d5e462048729a6c635c45d3d33c9ba/flake.nix#L25
This is the error I'm facing
I'm relatively new to nix, so is this some relative import problem? Or is my method of using
nixos-hardware
repo incorrect?