Skip to content

Trouble with Rebuild #3

@GreenAnts

Description

@GreenAnts

Let me preface by the fact that I am pretty much a noob and trying to get my current nixOS Gnome over to wayland. For some reason following the nixOS wiki wasn't working to get wayland working and I eventually stumbled across this repo.

Everything seemed to go smoothly following the instructions until here:

cd nixos-config-reborn
git add .
nixos-rebuild switch --flake ./#<hostname>
# or nixos-install --flake ./#<hostname> if you are installing on a fresh system
home-manager switch

I am assuming it's possibly a typo and is supposed to b: nixos-rebuild switch --flake ./hosts/#<hostname>, because that is where the instructions had me create the directory (unless I am mistaken or missing something).

But even with that command, I end up with this error:

nixos-rebuild switch --flake ./hosts/tortoise
path '/home/tortoise/nixos-config-reborn/hosts/tortoise' does not contain a 'flake.nix', searching up
warning: Git tree '/home/tortoise/nixos-config-reborn' is dirty
error: flake 'git+file:///home/tortoise/nixos-config-reborn' does not provide attribute 'packages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild', 'legacyPackages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild' or 'nixosConfigurations."nixos".config.system.build.nixos-rebuild'

It seems like the flake file is supposed to be in the directory ( which wasn't clear to me in the direction...but I copied it over and it seemed to work, but then still gave the following error:

warning: Git tree '/home/tortoise/nixos-config-reborn' is dirty
error: flake 'git+file:///home/tortoise/nixos-config-reborn?dir=hosts/tortoise' does not provide attribute 'packages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild', 'legacyPackages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild' or 'nixosConfigurations."nixos".config.system.build.nixos-rebuild'

My guess is that step 5:

vim local-packages.nix
vim ../../nixos/packages.nix

needed something done? It said edit those files if needed, but since I am a noob, I don't know what that entails as of now, and left it blank. Am I supposed to edit these files to include the packages listed in the error message somehow? In reference to that, I can't seem to find vim ../../nixos/packages.nix either, however I did find the nixos/modules with multiple nix (dot?) files.

Sorry if this is really basic, but I am struggling my way through learning as I go - and hope you wouldn't mind pointing me in the right direction.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions