Skip to content

nixos-rebuild is doing something bizarre if I run it from /run/opengl-driver/lib #144811

@colemickens

Description

@colemickens

How is this possible? I don't feel like cwd should affect nixos-rebuild, yet:


/run/opengl-driver/lib
❯ sudo nixos-rebuild switch --flake ~/code/nixcfg --keep-going --override-input nixpkgs ~/code/nixpkgs/cmpkgs --override-input nixpkgs-wayland ~/code/nixpkgs-wayland--
warning: Git tree '/home/cole/code/nixcfg' is dirty
warning: Git tree '/home/cole/code/nixpkgs/cmpkgs' is dirty
warning: Git tree '/home/cole/code/nixpkgs-wayland--' is dirty
warning: not writing modified lock file of flake 'git+file:///home/cole/code/nixcfg':
• Updated input 'nixpkgs':
    'github:colemickens/nixpkgs/9e4d5ef70312114af7a7be9e00501aeaa28db602' (2021-11-05)
  → 'git+file:///home/cole/code/nixpkgs/cmpkgs' (2021-11-05)
• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/92142026becf3ec2ecfd145bc47a91cec3dbc242' (2021-11-05)
  → 'git+file:///home/cole/code/nixpkgs-wayland--' (2021-11-04)
building the system configuration...
sudo: /nix/store/m5h1ngr33dd51p3682gp28wrh1j15p0w-nvidia-x11-495.44-5.14.16/bin/switch-to-configuration: command not found
warning: error(s) occurred while switching to the new configuration

/run/opengl-driver/lib
❯ cd                       

~
❯ sudo nixos-rebuild switch --flake ~/code/nixcfg --keep-going --override-input nixpkgs ~/code/nixpkgs/cmpkgs --override-input nixpkgs-wayland ~/code/nixpkgs-wayland--
warning: Git tree '/home/cole/code/nixcfg' is dirty
warning: Git tree '/home/cole/code/nixpkgs/cmpkgs' is dirty
warning: Git tree '/home/cole/code/nixpkgs-wayland--' is dirty
warning: not writing modified lock file of flake 'git+file:///home/cole/code/nixcfg':
• Updated input 'nixpkgs':
    'github:colemickens/nixpkgs/9e4d5ef70312114af7a7be9e00501aeaa28db602' (2021-11-05)
  → 'git+file:///home/cole/code/nixpkgs/cmpkgs' (2021-11-05)
• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/92142026becf3ec2ecfd145bc47a91cec3dbc242' (2021-11-05)
  → 'git+file:///home/cole/code/nixpkgs-wayland--' (2021-11-04)
building the system configuration...
warning: Git tree '/home/cole/code/nixcfg' is dirty
warning: Git tree '/home/cole/code/nixpkgs/cmpkgs' is dirty
warning: Git tree '/home/cole/code/nixpkgs-wayland--' is dirty
warning: not writing modified lock file of flake 'git+file:///home/cole/code/nixcfg':
• Updated input 'nixpkgs':
    'github:colemickens/nixpkgs/9e4d5ef70312114af7a7be9e00501aeaa28db602' (2021-11-05)
  → 'git+file:///home/cole/code/nixpkgs/cmpkgs' (2021-11-05)
• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/92142026becf3ec2ecfd145bc47a91cec3dbc242' (2021-11-05)
  → 'git+file:///home/cole/code/nixpkgs-wayland--' (2021-11-04)
updating GRUB 2 menu...
skipping corrupt system profile entry ‘/nix/var/nix/profiles/system-172-link’
removing obsolete file /boot/kernels/r0qfw94bsp3x68861w13qxc471zbsxbr-linux-5.14.15-bzImage
removing obsolete file /boot/kernels/x4s0bjxb8yxh667hr17x65clsiibzxmy-initrd-linux-5.14.15-initrd
activating the configuration...
setting up /etc...
setting up secrets...
sops-install-secrets: Imported /etc/ssh/ssh_host_rsa_key with fingerprint 7741ed96478da6e16d2d43b0f5077f4274d3d2c9
reloading user units for cole...
setting up tmpfiles
reloading the following units: dbus.service
restarting the following units: home-manager-cole.service, polkit.service

I mean, the thing it tried to do the first time is bafflingly wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions