mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
6e5b2d9e80
The home manager script fails when $USER contains special characters. For example, my work PC is managed by company's LDAP and username is <COMPANY>\<user>). When running home-manager switch I get the following error: ``` error: flake 'path:/home/<COMPANY>/<user>/.config/home-manager' does not provide attribute 'packages.x86_64-linux.homeConfigurations."<COMPANY>\<user>".activationPackage', 'legacyPackages.x86_64-linux.homeConfigurations."<COMPANY>\<user>".activationPackage' or 'homeConfigurations."<COMPANY>\<user>".activationPackage' Did you mean <COMPANY><user>? ``` There are two types of strings that need escaping: strings in Nix expressions (e.g. home.nix generated by home-manager init) they need backslashes before special chars flake URI (passed to nix build) they need URI's percent encoding, luckily jq supports that |
||
---|---|---|
.. | ||
po | ||
build-news.nix | ||
completion.bash | ||
completion.fish | ||
completion.zsh | ||
default.nix | ||
home-manager | ||
home-manager.nix | ||
install.nix |