Weird macOS profile dir not created bug #3

Open
opened 2024-03-26 00:44:02 +00:00 by jade · 3 comments
Owner

On some installations on macOS, it seems that /nix/var/nix/profiles/per-user/USERNAME is not created, and then some shell scripts complain or something? idk. Rain hit this a while ago with flakey-profile.

% nix run .#profile.switch
warning: creating lock file '/home/rain/nix-flakey/flake.lock': 
• Added input 'flake-utils':
    'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15)
• Added input 'flake-utils/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Added input 'flakey-profile':
    'github:lf-/flakey-profile/5babe533ba05234b9627bb695a1f540b360ef521' (2023-11-13)
• Added input 'nixpkgs':
    'github:nixos/nixpkgs/faf912b086576fd1a15fca610166c98d47bc667e' (2024-02-05)
error: opening directory '/nix/var/nix/profiles/per-user/rain': No such file or directory
On some installations on macOS, it seems that `/nix/var/nix/profiles/per-user/USERNAME` is not created, and then some shell scripts complain or something? idk. Rain hit this a while ago with flakey-profile. ``` % nix run .#profile.switch warning: creating lock file '/home/rain/nix-flakey/flake.lock': • Added input 'flake-utils': 'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15) • Added input 'flake-utils/systems': 'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09) • Added input 'flakey-profile': 'github:lf-/flakey-profile/5babe533ba05234b9627bb695a1f540b360ef521' (2023-11-13) • Added input 'nixpkgs': 'github:nixos/nixpkgs/faf912b086576fd1a15fca610166c98d47bc667e' (2024-02-05) error: opening directory '/nix/var/nix/profiles/per-user/rain': No such file or directory ```
Owner

Our setup does not have these; I assume this is related to being an admin user potentially

Our setup does not have these; I assume this is related to being an admin user potentially
Author
Owner

yeah, there is also the weird shit where nix tried to move the profile to the user directory, which was a bad idea and we should probably revert

yeah, there is also the weird shit where nix tried to move the profile to the user directory, which was a bad idea and we should probably revert
Author
Owner

(this issue: lix-project/lix#151)

(this issue: https://git.lix.systems/lix-project/lix/issues/151)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix-installer#3
No description provided.