Framework NixOS (Linux) users self-help

Maybe this guy here you are missing:

Or you can even delegate all those shenanigans to nixos/nix-hardware by doing:

{
  description = "NixOS configuration with flakes";
  inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";

  outputs = { self, nixpkgs, nixos-hardware }: {
    # replace <your-hostname> with your actual hostname
    nixosConfigurations.<your-hostname> = nixpkgs.lib.nixosSystem {
      # ...
      modules = [
        # ...
        # add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
        nixos-hardware.nixosModules.framework.amd-7040
      ];
    };
  };
}

Like I do in here: https://github.com/storopoli/flakes/blob/main/flake.nix#L67-L68