-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Error switching to initial config using flakes on MacOs #4611
Comments
My abbreviated {
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
flake-utils,
nixpkgs,
home-manager,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
packages.homeConfigurations = {
foobar = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./modules/devtools.nix
({ pkgs, ... }: {
home.username = "foobar";
home.homeDirectory = if pkgs.stdenv.isDarwin then "/Users/foobar" else "/home/foobar";
home.stateVersion = "23.05"; # Please read the comment before changing.
home.devtools.enable = true;
})
];
};
};
});
} |
I'm going to close this. I did a full Nix package manager uninstall and re-install, including destroying the nix store volume. Everything is working now. I think the multi-user install on MacOS fixes the issue. |
hmm i'm running into this too… curious if anyone has a better solution than a full reinstall |
I think if you look at the other issue referenced above here
though I have not tried this as I found it easier to burn everything down and try again 😄 |
For anyone looking for a workaround, see https://github.com/juspay/nix-dev-home?tab=readme-ov-file#error-opening-lock-file- |
Are you following the right branch?
Is there an existing issue for this?
Issue description
If I run
nix run home-manager/master -- switch --flake .
on MacOs Sonoma (14.0) I see the following error:Please advise. This is on a clean nix install on my machine. I did not see any prerequisites on the Home Manager docs. Additionally, running
nix run home-manager/master -- build --flake .
succeeds.Maintainer CC
No response
System information
The text was updated successfully, but these errors were encountered: